mirror of
https://github.com/reactos/wine.git
synced 2025-04-02 16:12:04 +00:00
gdi32: Remove a dependency on the amount of available memory.
This commit is contained in:
parent
d245e7978d
commit
c17bb019f4
@ -982,10 +982,14 @@ static void test_bitmap(void)
|
||||
|
||||
SetLastError(0xdeadbeef);
|
||||
hbmp = CreateBitmap(0x7ffffff, 9, 1, 1, NULL);
|
||||
ok(!hbmp, "CreateBitmap should fail\n");
|
||||
ok(GetLastError() == ERROR_NOT_ENOUGH_MEMORY /* XP */ ||
|
||||
GetLastError() == ERROR_INVALID_PARAMETER /* Win2k */,
|
||||
"expected ERROR_NOT_ENOUGH_MEMORY, got %u\n", GetLastError());
|
||||
if (!hbmp)
|
||||
{
|
||||
ok(GetLastError() == ERROR_NOT_ENOUGH_MEMORY /* XP */ ||
|
||||
GetLastError() == ERROR_INVALID_PARAMETER /* Win2k */,
|
||||
"expected ERROR_NOT_ENOUGH_MEMORY, got %u\n", GetLastError());
|
||||
}
|
||||
else
|
||||
DeleteObject(hbmp);
|
||||
|
||||
SetLastError(0xdeadbeef);
|
||||
hbmp = CreateBitmap(0x7ffffff + 1, 1, 1, 1, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user