diff --git a/dlls/gdi32/tests/bitmap.c b/dlls/gdi32/tests/bitmap.c index adef0359fb6..6dd612c7987 100644 --- a/dlls/gdi32/tests/bitmap.c +++ b/dlls/gdi32/tests/bitmap.c @@ -792,7 +792,7 @@ static void test_dibsections(void) DeleteObject(hdib2); SelectObject(hdcmem, oldbm); - SelectObject(hdcmem, oldpal); + SelectPalette(hdcmem, oldpal, TRUE); DeleteObject(hdib); DeleteObject(hpal);