mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
dxdiagn: Remove unneeded casts.
This commit is contained in:
parent
d0d4c74e85
commit
c6511b0031
@ -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:
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user