mapi32/tests: Report skip for MAPIGetDefaultMalloc.

This commit is contained in:
Andrew Nguyen 2010-01-18 06:59:54 -06:00 committed by Alexandre Julliard
parent 4904e31133
commit 9996897c51
1 changed files with 7 additions and 0 deletions

View File

@ -45,11 +45,18 @@ static void test_IMalloc(void)
pMAPIGetDefaultMalloc = (void*)GetProcAddress(hMapi32,
"MAPIGetDefaultMalloc@0");
if (!pMAPIGetDefaultMalloc)
{
win_skip("MAPIGetDefaultMalloc is not available\n");
return;
}
lpMalloc = pMAPIGetDefaultMalloc();
ok(lpMalloc != NULL, "Expected MAPIGetDefaultMalloc to return non-NULL\n");
if (!lpMalloc)
{
skip("MAPIGetDefaultMalloc failed\n");
return;
}
lpVoid = NULL;
hRet = IMalloc_QueryInterface(lpMalloc, &IID_IUnknown, &lpVoid);