MoveFileExA->W

Aric Stewart aric at codeweavers.com
Tue Sep 6 11:27:09 CDT 2005


Fix the translation of dest to DestW, having it be NULL vs "" has 
different meanings for MoveFileEx
-------------- next part --------------
Index: dlls/kernel/path.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/path.c,v
retrieving revision 1.23
diff -u -r1.23 path.c
--- dlls/kernel/path.c	11 Aug 2005 11:07:17 -0000	1.23
+++ dlls/kernel/path.c	6 Sep 2005 16:24:30 -0000
@@ -1122,7 +1122,13 @@
     BOOL ret;
 
     if (!(sourceW = FILE_name_AtoW( source, FALSE ))) return FALSE;
-    if (!(destW = FILE_name_AtoW( dest, TRUE ))) return FALSE;
+    if (dest)
+    {
+        if (!(destW = FILE_name_AtoW( dest, TRUE ))) return FALSE;
+    }
+    else
+        destW = NULL;
+
     ret = MoveFileExW( sourceW, destW, flag );
     HeapFree( GetProcessHeap(), 0, destW );
     return ret;


More information about the wine-patches mailing list