[3/6] kernel32: Add the MOVEFILE_WRITE_THROUGH flag (stub) for MoveFileEx.

Dan Hipschman dsh at linux.ucla.edu
Thu Mar 13 18:00:32 CDT 2008


NOTE: I thought I sent this with the other five patches, but I don't see
it.  Sorry if it ends up being a resend.

This feature of MoveFileEx is technically needed by IBackgroundCopyJob_Complete
to return the correct status if it has to move temp files across volumes, but
since it's a very small point, I'm just adding the flag so we can compile with
it.

---
 dlls/kernel32/path.c |    3 +++
 include/winbase.h    |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/kernel32/path.c b/dlls/kernel32/path.c
index f0f713f..aad260f 100644
--- a/dlls/kernel32/path.c
+++ b/dlls/kernel32/path.c
@@ -1010,6 +1010,9 @@ BOOL WINAPI MoveFileWithProgressW( LPCWSTR source, LPCWSTR dest,
     if (!dest)
         return DeleteFileW( source );
 
+    if (flag & MOVEFILE_WRITE_THROUGH)
+        FIXME("MOVEFILE_WRITE_THROUGH unimplemented\n");
+
     /* check if we are allowed to rename the source */
 
     if (!RtlDosPathNameToNtPathName_U( source, &nt_name, NULL, NULL ))
diff --git a/include/winbase.h b/include/winbase.h
index e2ee515..f3130a0 100644
--- a/include/winbase.h
+++ b/include/winbase.h
@@ -845,6 +845,7 @@ typedef DWORD (CALLBACK *LPPROGRESS_ROUTINE)(LARGE_INTEGER, LARGE_INTEGER, LARGE
 #define MOVEFILE_REPLACE_EXISTING       0x00000001
 #define MOVEFILE_COPY_ALLOWED           0x00000002
 #define MOVEFILE_DELAY_UNTIL_REBOOT     0x00000004
+#define MOVEFILE_WRITE_THROUGH          0x00000008
 
 #define REPLACEFILE_WRITE_THROUGH       0x00000001
 #define REPLACEFILE_IGNORE_MERGE_ERRORS 0x00000002



More information about the wine-patches mailing list