mapi32: Remove superfluous casts.

This commit is contained in:
Michael Stefaniuc 2009-01-08 00:36:51 +01:00 committed by Alexandre Julliard
parent 68d5d8e921
commit 120584d5c5
3 changed files with 4 additions and 5 deletions

View File

@ -78,7 +78,7 @@ static HRESULT WINAPI IMAPIMalloc_fnQueryInterface(LPMALLOC iface, REFIID refiid
if (IsEqualIID(refiid, &IID_IUnknown) || if (IsEqualIID(refiid, &IID_IUnknown) ||
IsEqualIID(refiid, &IID_IMalloc)) IsEqualIID(refiid, &IID_IMalloc))
{ {
*ppvObj = (LPMALLOC) &MAPI_IMalloc; *ppvObj = &MAPI_IMalloc;
TRACE("Returning IMalloc (%p)\n", *ppvObj); TRACE("Returning IMalloc (%p)\n", *ppvObj);
return S_OK; return S_OK;
} }

View File

@ -64,8 +64,7 @@ static void test_IMalloc(void)
/* Prove that native mapi uses LocalAlloc/LocalFree */ /* Prove that native mapi uses LocalAlloc/LocalFree */
lpMem = IMalloc_Alloc(lpMalloc, 61); lpMem = IMalloc_Alloc(lpMalloc, 61);
ok (lpMem && IMalloc_GetSize(lpMalloc, lpMem) == ok (lpMem && IMalloc_GetSize(lpMalloc, lpMem) == LocalSize(lpMem),
LocalSize((HANDLE)lpMem),
"Expected non-null, same size, got %p, %s size\n", lpMem, "Expected non-null, same size, got %p, %s size\n", lpMem,
lpMem ? "different" : "same"); lpMem ? "different" : "same");

View File

@ -93,11 +93,11 @@ static void test_PropCopyMore(void)
if (!pPropCopyMore) if (!pPropCopyMore)
return; return;
scode = pMAPIAllocateBuffer(sizeof(LPSPropValue), (LPVOID *)lpDest); scode = pMAPIAllocateBuffer(sizeof(LPSPropValue), lpDest);
if (FAILED(scode)) if (FAILED(scode))
return; return;
scode = pMAPIAllocateMore(sizeof(LPSPropValue), lpDest, (LPVOID *)lpSrc); scode = pMAPIAllocateMore(sizeof(LPSPropValue), lpDest, lpSrc);
if (FAILED(scode)) if (FAILED(scode))
return; return;