Commit in reactos/lib/kernel32/file on MAIN
file.c+3-31.60 -> 1.61
corrected the last error to check for when determining if the file already exists (when using CreateFile with CREATE_NEW)

reactos/lib/kernel32/file
file.c 1.60 -> 1.61
diff -u -r1.60 -r1.61
--- file.c	31 Oct 2004 01:36:37 -0000	1.60
+++ file.c	6 Dec 2004 14:45:47 -0000	1.61
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.60 2004/10/31 01:36:37 weiden Exp $
+/* $Id: file.c,v 1.61 2004/12/06 14:45:47 gdalsnes Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS system libraries
@@ -993,7 +993,7 @@
 			       CREATE_NEW, FILE_ATTRIBUTE_TEMPORARY,
 			       0)) == INVALID_HANDLE_VALUE)
    {
-      if (GetLastError() != ERROR_ALREADY_EXISTS)
+      if (GetLastError() != ERROR_FILE_EXISTS)
       {
          return 0;
       }
@@ -1041,7 +1041,7 @@
 			       CREATE_NEW, FILE_ATTRIBUTE_TEMPORARY,
 			       0)) == INVALID_HANDLE_VALUE)
    {
-      if (GetLastError() != ERROR_ALREADY_EXISTS)
+      if (GetLastError() != ERROR_FILE_EXISTS)
       {
          return 0;
       }
CVSspam 0.2.8