Jon Griffiths : msvcrt: Fix file test which fails on Vista.

Alexandre Julliard julliard at winehq.org
Wed May 28 14:46:00 CDT 2008


Module: wine
Branch: master
Commit: 09627c8f611e868dc9d8dba6a29acca376a83c95
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=09627c8f611e868dc9d8dba6a29acca376a83c95

Author: Jon Griffiths <jon_p_griffiths at yahoo.com>
Date:   Tue May 27 22:14:29 2008 -0700

msvcrt: Fix file test which fails on Vista.

---

 dlls/msvcrt/tests/file.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/msvcrt/tests/file.c b/dlls/msvcrt/tests/file.c
index aa58a32..ec22d81 100644
--- a/dlls/msvcrt/tests/file.c
+++ b/dlls/msvcrt/tests/file.c
@@ -783,8 +783,8 @@ static void test_fopen_fclose_fcloseall( void )
     ok(stream3 != NULL, "The file '%s' should be opened now\n", fname3 );
     errno = 0xfaceabad;
     stream4 = fopen("", "w+");
-    ok(stream4 == NULL && errno == ENOENT, 
-       "filename is empty, errno = %d (expected 2)\n", errno);
+    ok(stream4 == NULL && (errno == EINVAL || errno == ENOENT),
+       "filename is empty, errno = %d (expected 2 or 22)\n", errno);
     errno = 0xfaceabad;
     stream4 = fopen(NULL, "w+");
     ok(stream4 == NULL && (errno == EINVAL || errno == ENOENT), 




More information about the wine-cvs mailing list