Commit 9996897c authored by Andrew Nguyen's avatar Andrew Nguyen Committed by Alexandre Julliard

mapi32/tests: Report skip for MAPIGetDefaultMalloc.

parent 4904e311
...@@ -45,11 +45,18 @@ static void test_IMalloc(void) ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment