dxdiagn: Remove unneeded casts.

This commit is contained in:
Andrew Talbot 2008-01-05 16:44:06 +00:00 committed by Alexandre Julliard
parent d0d4c74e85
commit c6511b0031
2 changed files with 4 additions and 4 deletions

View File

@ -116,8 +116,8 @@ static HRESULT WINAPI IDxDiagContainerImpl_GetChildContainerInternal(PDXDIAGCONT
p = This->subContainers;
while (NULL != p) {
if (0 == lstrcmpW(p->contName, pwszContainer)) {
*ppInstance = (PDXDIAGCONTAINER)p->pCont;
if (0 == lstrcmpW(p->contName, pwszContainer)) {
*ppInstance = p->pCont;
return S_OK;
}
p = p->next;
@ -159,7 +159,7 @@ static HRESULT WINAPI IDxDiagContainerImpl_GetChildContainer(PDXDIAGCONTAINER if
hr = IDxDiagContainerImpl_GetChildContainerInternal(pContainer, tmp, ppInstance);
if (SUCCEEDED(hr)) {
IDxDiagContainerImpl_AddRef((PDXDIAGCONTAINER)*ppInstance);
IDxDiagContainerImpl_AddRef(*ppInstance);
}
on_error:

View File

@ -112,7 +112,7 @@ static HRESULT WINAPI IDxDiagProviderImpl_GetRootContainer(PDXDIAGPROVIDER iface
if (FAILED(hr)) {
return hr;
}
hr = DXDiag_InitRootDXDiagContainer((PDXDIAGCONTAINER)This->pRootContainer);
hr = DXDiag_InitRootDXDiagContainer(This->pRootContainer);
}
return IDxDiagContainerImpl_QueryInterface((PDXDIAGCONTAINER)This->pRootContainer, &IID_IDxDiagContainer, (void**) ppInstance);
}