Module: wine Branch: master Commit: 0e8f1931846669818787255867397c415f5afd86 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0e8f1931846669818787255867...
Author: Dan Hipschman dsh@linux.ucla.edu Date: Thu Mar 13 15:55:46 2008 -0700
kernel32: Add the MOVEFILE_WRITE_THROUGH flag for MoveFileEx (stub).
---
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