msvcrt: Fix file test which fails on Vista.

This commit is contained in:
Jon Griffiths 2008-05-27 22:14:29 -07:00 committed by Alexandre Julliard
parent c6fd6b6ab8
commit 09627c8f61

View file

@ -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),