[ros-diffs] [spetreolle] 54258: [KERNEL32] Use ERROR_SUCCESS instead of 0. Dedicated to Pierre.

spetreolle at svn.reactos.org spetreolle at svn.reactos.org
Thu Oct 27 09:38:16 UTC 2011


Author: spetreolle
Date: Thu Oct 27 09:38:14 2011
New Revision: 54258

URL: http://svn.reactos.org/svn/reactos?rev=54258&view=rev
Log:
[KERNEL32]
Use ERROR_SUCCESS instead of 0.
Dedicated to Pierre.

Modified:
    trunk/reactos/dll/win32/kernel32/client/file/create.c

Modified: trunk/reactos/dll/win32/kernel32/client/file/create.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/file/create.c?rev=54258&r1=54257&r2=54258&view=diff
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/file/create.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/file/create.c [iso-8859-1] Thu Oct 27 09:38:14 2011
@@ -361,15 +361,15 @@
   */
   if (dwCreationDisposition == FILE_OPEN_IF)
   {
-    SetLastError(IoStatusBlock.Information == FILE_OPENED ? ERROR_ALREADY_EXISTS : 0);
+    SetLastError(IoStatusBlock.Information == FILE_OPENED ? ERROR_ALREADY_EXISTS : ERROR_SUCCESS);
   }
   else if (dwCreationDisposition == FILE_OVERWRITE_IF)
   {
-    SetLastError(IoStatusBlock.Information == FILE_OVERWRITTEN ? ERROR_ALREADY_EXISTS : 0);
+    SetLastError(IoStatusBlock.Information == FILE_OVERWRITTEN ? ERROR_ALREADY_EXISTS : ERROR_SUCCESS);
   }
   else
   {
-    SetLastError(0);
+    SetLastError(ERROR_SUCCESS);
   }
 
   return FileHandle;




More information about the Ros-diffs mailing list