mapi32/tests: Report skip for MAPIGetDefaultMalloc.
This commit is contained in:
parent
4904e31133
commit
9996897c51
|
@ -45,11 +45,18 @@ static void test_IMalloc(void)
|
||||||
pMAPIGetDefaultMalloc = (void*)GetProcAddress(hMapi32,
|
pMAPIGetDefaultMalloc = (void*)GetProcAddress(hMapi32,
|
||||||
"MAPIGetDefaultMalloc@0");
|
"MAPIGetDefaultMalloc@0");
|
||||||
if (!pMAPIGetDefaultMalloc)
|
if (!pMAPIGetDefaultMalloc)
|
||||||
|
{
|
||||||
|
win_skip("MAPIGetDefaultMalloc is not available\n");
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
lpMalloc = pMAPIGetDefaultMalloc();
|
lpMalloc = pMAPIGetDefaultMalloc();
|
||||||
|
ok(lpMalloc != NULL, "Expected MAPIGetDefaultMalloc to return non-NULL\n");
|
||||||
if (!lpMalloc)
|
if (!lpMalloc)
|
||||||
|
{
|
||||||
|
skip("MAPIGetDefaultMalloc failed\n");
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
lpVoid = NULL;
|
lpVoid = NULL;
|
||||||
hRet = IMalloc_QueryInterface(lpMalloc, &IID_IUnknown, &lpVoid);
|
hRet = IMalloc_QueryInterface(lpMalloc, &IID_IUnknown, &lpVoid);
|
||||||
|
|
Loading…
Reference in New Issue