Re: Resend: Another fix for kernel file test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sunday 14 December 2003 21:23, Alexandre Julliard wrote:

> You need to fix the code too, or add a todo_wine; I can't commit tests
> that fail.

Of course, you're right. Here's a fix.

Changelog:
  MoveFile returns ERROR_ALREADY_EXISTS, not ERROR_FILE_EXISTS

Index: files/file.c
===================================================================
RCS file: /home/wine/wine/files/file.c,v
retrieving revision 1.196
diff -u -r1.196 file.c
--- files/file.c	12 Dec 2003 04:10:52 -0000	1.196
+++ files/file.c	14 Dec 2003 21:01:49 -0000
@@ -1817,7 +1817,7 @@
                 /* target exists, check if we may overwrite */
                 if (!(flag & MOVEFILE_REPLACE_EXISTING))
                 {
-                    SetLastError( ERROR_FILE_EXISTS );
+                    SetLastError( ERROR_ALREADY_EXISTS );
                     return FALSE;
                 }
             }

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux