This reverts commit d8480efdb2be9e6d03c1efd3e4978daf35b1ee27.
Signed-off-by: Oded Elisha oded123456@gmail.com --- dlls/kernel32/path.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-)
diff --git a/dlls/kernel32/path.c b/dlls/kernel32/path.c index 81610a2..a389743 100644 --- a/dlls/kernel32/path.c +++ b/dlls/kernel32/path.c @@ -1268,9 +1268,6 @@ BOOL WINAPI CopyFileExA(LPCSTR sourceFilename, LPCSTR destFilename, return ret; }
-extern int CDECL wine_server_handle_to_fd( HANDLE handle, unsigned int access, int *unix_fd, - unsigned int *options ); -
/************************************************************************** * MoveFileWithProgressW (KERNEL32.@) @@ -1286,7 +1283,6 @@ BOOL WINAPI MoveFileWithProgressW( LPCWSTR source, LPCWSTR dest, NTSTATUS status; HANDLE source_handle = 0, dest_handle; ANSI_STRING source_unix, dest_unix; - BOOL should_sync = FALSE;
TRACE("(%s,%s,%p,%p,%04x)\n", debugstr_w(source), debugstr_w(dest), fnProgress, param, flag ); @@ -1297,9 +1293,8 @@ BOOL WINAPI MoveFileWithProgressW( LPCWSTR source, LPCWSTR dest, if (!dest) return DeleteFileW( source );
- if ((flag & MOVEFILE_WRITE_THROUGH) && !(flag & MOVEFILE_DELAY_UNTIL_REBOOT)) { - should_sync = TRUE; - } + if (flag & MOVEFILE_WRITE_THROUGH) + FIXME("MOVEFILE_WRITE_THROUGH unimplemented\n");
/* check if we are allowed to rename the source */
@@ -1409,10 +1404,6 @@ BOOL WINAPI MoveFileWithProgressW( LPCWSTR source, LPCWSTR dest, } }
- if (should_sync) { - sync(); - } - NtClose( source_handle ); RtlFreeAnsiString( &source_unix ); RtlFreeAnsiString( &dest_unix );