From: Stéphane Bacri frisou76@yahoo.fr
--- dlls/ntdll/unix/file.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/unix/file.c b/dlls/ntdll/unix/file.c index e889fc87fcd..45f2a8bad4a 100644 --- a/dlls/ntdll/unix/file.c +++ b/dlls/ntdll/unix/file.c @@ -4672,14 +4672,16 @@ NTSTATUS WINAPI NtSetInformationFile( HANDLE handle, IO_STATUS_BLOCK *io, if (len >= sizeof(FILE_ALLOCATION_INFORMATION)) { const FILE_ALLOCATION_INFORMATION *info = ptr; - +#ifdef __APPLE__ + WARN( "setting file allocation information not supported on this platform\n" ); +#else if ((status = server_get_unix_fd( handle, 0, &fd, &needs_close, NULL, NULL ))) return io->Status = status;
if (fallocate( fd, FALLOC_FL_KEEP_SIZE, 0, (off_t)info->AllocationSize.QuadPart ) == -1) status = errno_to_status( errno ); - if (needs_close) close( fd ); +#endif } else status = STATUS_INVALID_PARAMETER_3; break;