kernel32_test: fix one test error under Win9x

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

 



Changelog
  - dlls/kernel/tests/file.c
    Fix another error under Win9x (hopefully)

License: X11

Rolf Kalbermatter

Index: dlls/kernel/tests/file.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/tests/file.c,v
retrieving revision 1.21
diff -u -r1.21 file.c
--- dlls/kernel/tests/file.c	16 Sep 2003 01:22:06 -0000	1.21
+++ dlls/kernel/tests/file.c	16 Sep 2003 18:43:04 -0000
@@ -262,11 +262,10 @@
     ok( DeleteFileA( filename ) != 0, "DeleteFile failed (%ld)", GetLastError(  ) );
 
     filehandle=_lcreat (slashname, 0); /* illegal name */
-    if (HFILE_ERROR != filehandle || GetLastError() != ERROR_INVALID_NAME)
+    if (HFILE_ERROR != filehandle || (GetLastError() != ERROR_INVALID_NAME && GetLastError() != ERROR_PATH_NOT_FOUND))
     {
-
       todo_wine {
-        ok (0, "creating file \"%s\" should fail with error 123, (err=%ld)", slashname, GetLastError ());
+        ok (0, "creating file \"%s\" should fail with error 123 or 3, (err=%ld)", slashname, GetLastError ());
       }
 
       _lclose(filehandle);




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

  Powered by Linux