gdi32/tests: Don't crash on NT4.

This commit is contained in:
Paul Vriens 2008-11-06 13:46:52 +01:00 committed by Alexandre Julliard
parent 97802ef16b
commit 3f4333d70c
1 changed files with 4 additions and 2 deletions

View File

@ -2076,9 +2076,11 @@ static void test_gdiis(void)
pGdiIsMetaFileDC = (void*) GetProcAddress(hgdi32, "GdiIsMetaFileDC");
pGdiIsPlayMetafileDC = (void*) GetProcAddress(hgdi32, "GdiIsPlayMetafileDC");
/* they should all exist or none should exist */
if(!pGdiIsMetaPrintDC)
if(!pGdiIsMetaPrintDC || !pGdiIsMetaFileDC || !pGdiIsPlayMetafileDC)
{
win_skip("Needed GdiIs* functions are not available\n");
return;
}
/* try with nothing */
ok(!pGdiIsMetaPrintDC(NULL), "ismetaprint with NULL parameter\n");