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;