kernel32: Fix a few test failures in win9x.
This commit is contained in:
parent
ac5885ef41
commit
03d23bd43d
|
@ -186,23 +186,29 @@ START_TEST(heap)
|
|||
SetLastError(MAGIC_DEAD);
|
||||
mem = GlobalFree(gbl);
|
||||
ok(mem == gbl, "Expected gbl, got %p\n", mem);
|
||||
ok(GetLastError() == ERROR_INVALID_HANDLE,
|
||||
"Expected ERROR_INVALID_HANDLE, got %d\n", GetLastError());
|
||||
ok(GetLastError() == ERROR_INVALID_HANDLE ||
|
||||
GetLastError() == ERROR_INVALID_PARAMETER, /* win9x */
|
||||
"Expected ERROR_INVALID_HANDLE or ERROR_INVALID_PARAMETER, got %d\n", GetLastError());
|
||||
|
||||
gbl = GlobalAlloc(GMEM_DDESHARE, 100);
|
||||
|
||||
res = GlobalUnlock(gbl);
|
||||
ok(res == 1, "Expected 1, got %d\n", res);
|
||||
ok(res == 1 ||
|
||||
res == 0, /* win9x */
|
||||
"Expected 1 or 0, got %d\n", res);
|
||||
|
||||
res = GlobalUnlock(gbl);
|
||||
ok(res == 1, "Expected 1, got %d\n", res);
|
||||
ok(res == 1 ||
|
||||
res == 0, /* win9x */
|
||||
"Expected 1 or 0, got %d\n", res);
|
||||
|
||||
/* GlobalSize on an invalid handle */
|
||||
SetLastError(MAGIC_DEAD);
|
||||
size = GlobalSize((HGLOBAL)0xc042);
|
||||
ok(size == 0, "Expected 0, got %ld\n", size);
|
||||
ok(GetLastError() == ERROR_INVALID_HANDLE,
|
||||
"Expected ERROR_INVALID_HANDLE, got %d\n", GetLastError());
|
||||
ok(GetLastError() == ERROR_INVALID_HANDLE ||
|
||||
GetLastError() == ERROR_INVALID_PARAMETER, /* win9x */
|
||||
"Expected ERROR_INVALID_HANDLE or ERROR_INVALID_PARAMETER, got %d\n", GetLastError());
|
||||
|
||||
/* ####################################### */
|
||||
/* Local*() functions */
|
||||
|
|
Loading…
Reference in New Issue