kernel32/tests: Fix tests on NT4.

This commit is contained in:
Paul Vriens 2008-09-20 16:49:32 +02:00 committed by Alexandre Julliard
parent 40a94e04b4
commit e23904ceb9
1 changed files with 6 additions and 2 deletions

View File

@ -1560,12 +1560,16 @@ static void test_MapFile(void)
ok( GetLastError() == ERROR_FILE_INVALID, "not ERROR_FILE_INVALID\n");
hmap = CreateFileMapping( handle, NULL, PAGE_READWRITE, 0x80000000, 0, NULL );
ok( hmap == NULL, "mapping should fail\n");
ok( hmap == NULL || broken(hmap != NULL) /* NT4 */, "mapping should fail\n");
/* GetLastError() varies between win9x and WinNT and also depends on the filesystem */
if ( hmap )
CloseHandle( hmap );
hmap = CreateFileMapping( handle, NULL, PAGE_READWRITE, 0x80000000, 0x10000, NULL );
ok( hmap == NULL, "mapping should fail\n");
ok( hmap == NULL || broken(hmap != NULL) /* NT4 */, "mapping should fail\n");
/* GetLastError() varies between win9x and WinNT and also depends on the filesystem */
if ( hmap )
CloseHandle( hmap );
/* On XP you can now map again, on Win 95 you cannot. */