From c6511b0031e70f35e438d8675eada385779d24dd Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Sat, 5 Jan 2008 16:44:06 +0000 Subject: [PATCH] dxdiagn: Remove unneeded casts. --- dlls/dxdiagn/container.c | 6 +++--- dlls/dxdiagn/provider.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/dxdiagn/container.c b/dlls/dxdiagn/container.c index 184840bb63..b517dcedb3 100644 --- a/dlls/dxdiagn/container.c +++ b/dlls/dxdiagn/container.c @@ -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: diff --git a/dlls/dxdiagn/provider.c b/dlls/dxdiagn/provider.c index ca81817fd9..fb18a35070 100644 --- a/dlls/dxdiagn/provider.c +++ b/dlls/dxdiagn/provider.c @@ -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); }