Commit 89b04374 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

dxdiagn: Remove superfluous pointer casts.

parent 484a5357
...@@ -353,7 +353,7 @@ static HRESULT DXDiag_InitDXDiagSystemDevicesContainer(IDxDiagContainer* pSubCon ...@@ -353,7 +353,7 @@ static HRESULT DXDiag_InitDXDiagSystemDevicesContainer(IDxDiagContainer* pSubCon
IDxDiagContainer* pDeviceSubCont = NULL; IDxDiagContainer* pDeviceSubCont = NULL;
IDxDiagContainer* pDriversCont = NULL; IDxDiagContainer* pDriversCont = NULL;
hr = DXDiag_CreateDXDiagContainer(&IID_IDxDiagContainer, (void**) &pDeviceSubCont); hr = DXDiag_CreateDXDiagContainer(&IID_IDxDiagContainer, &pDeviceSubCont);
if (FAILED(hr)) { return hr; } if (FAILED(hr)) { return hr; }
V_VT(pvarProp) = VT_BSTR; V_BSTR(pvarProp) = SysAllocString(property->psz); V_VT(pvarProp) = VT_BSTR; V_BSTR(pvarProp) = SysAllocString(property->psz);
hr = IDxDiagContainerImpl_AddProp(pDeviceSubCont, szDescription, &v); hr = IDxDiagContainerImpl_AddProp(pDeviceSubCont, szDescription, &v);
...@@ -369,7 +369,7 @@ static HRESULT DXDiag_InitDXDiagSystemDevicesContainer(IDxDiagContainer* pSubCon ...@@ -369,7 +369,7 @@ static HRESULT DXDiag_InitDXDiagSystemDevicesContainer(IDxDiagContainer* pSubCon
* Drivers Cont contains Files Desc Containers * Drivers Cont contains Files Desc Containers
*/ */
/* /*
hr = DXDiag_CreateDXDiagContainer(&IID_IDxDiagContainer, (void**) &pDriversCont); hr = DXDiag_CreateDXDiagContainer(&IID_IDxDiagContainer, &pDriversCont);
if (FAILED(hr)) { return hr; } if (FAILED(hr)) { return hr; }
hr = IDxDiagContainerImpl_AddChildContainer(pDeviceSubCont, szDrivers, pDriversCont); hr = IDxDiagContainerImpl_AddChildContainer(pDeviceSubCont, szDrivers, pDriversCont);
...@@ -394,7 +394,7 @@ static HRESULT DXDiag_InitDXDiagLogicalDisksContainer(IDxDiagContainer* pSubCont ...@@ -394,7 +394,7 @@ static HRESULT DXDiag_InitDXDiagLogicalDisksContainer(IDxDiagContainer* pSubCont
IDxDiagContainer* pDiskSubCont = NULL; IDxDiagContainer* pDiskSubCont = NULL;
IDxDiagContainer* pDriversCont = NULL; IDxDiagContainer* pDriversCont = NULL;
hr = DXDiag_CreateDXDiagContainer(&IID_IDxDiagContainer, (void**) &pDiskSubCont); hr = DXDiag_CreateDXDiagContainer(&IID_IDxDiagContainer, &pDiskSubCont);
if (FAILED(hr)) { return hr; } if (FAILED(hr)) { return hr; }
hr = IDxDiagContainerImpl_AddChildContainer(pSubCont, "" , pDiskSubCont); hr = IDxDiagContainerImpl_AddChildContainer(pSubCont, "" , pDiskSubCont);
*/ */
...@@ -403,7 +403,7 @@ static HRESULT DXDiag_InitDXDiagLogicalDisksContainer(IDxDiagContainer* pSubCont ...@@ -403,7 +403,7 @@ static HRESULT DXDiag_InitDXDiagLogicalDisksContainer(IDxDiagContainer* pSubCont
* Drivers Cont contains Files Desc Containers * Drivers Cont contains Files Desc Containers
*/ */
/* /*
hr = DXDiag_CreateDXDiagContainer(&IID_IDxDiagContainer, (void**) &pDriversCont); hr = DXDiag_CreateDXDiagContainer(&IID_IDxDiagContainer, &pDriversCont);
if (FAILED(hr)) { return hr; } if (FAILED(hr)) { return hr; }
hr = IDxDiagContainerImpl_AddChildContainer(pDeviceSubCont, szDrivers, pDriversCont); hr = IDxDiagContainerImpl_AddChildContainer(pDeviceSubCont, szDrivers, pDriversCont);
*/ */
......
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