gdiplus/tests: Fix a test failure on XP/W2K3.
This commit is contained in:
parent
17eb00409c
commit
60ca760edd
|
@ -529,6 +529,7 @@ static void test_GdipCreateBitmapFromHBITMAP(void)
|
||||||
LogPal = GdipAlloc(sizeof(LOGPALETTE));
|
LogPal = GdipAlloc(sizeof(LOGPALETTE));
|
||||||
ok(LogPal != NULL, "unable to allocate LOGPALETTE\n");
|
ok(LogPal != NULL, "unable to allocate LOGPALETTE\n");
|
||||||
LogPal->palVersion = 0x300;
|
LogPal->palVersion = 0x300;
|
||||||
|
LogPal->palNumEntries = 1;
|
||||||
hpal = CreatePalette(LogPal);
|
hpal = CreatePalette(LogPal);
|
||||||
ok(hpal != NULL, "CreatePalette failed\n");
|
ok(hpal != NULL, "CreatePalette failed\n");
|
||||||
GdipFree(LogPal);
|
GdipFree(LogPal);
|
||||||
|
|
Loading…
Reference in New Issue