d3d9: Use correct COM macros.
This commit is contained in:
parent
3127eac2bd
commit
61087377a0
|
@ -100,8 +100,8 @@ HRESULT WINAPI IDirect3DDevice9Impl_GetDirect3D(LPDIRECT3DDEVICE9 iface, IDire
|
||||||
hr = IWineD3DDevice_GetDirect3D(This->WineD3DDevice, &pWineD3D);
|
hr = IWineD3DDevice_GetDirect3D(This->WineD3DDevice, &pWineD3D);
|
||||||
if (hr == D3D_OK && pWineD3D != NULL)
|
if (hr == D3D_OK && pWineD3D != NULL)
|
||||||
{
|
{
|
||||||
IWineD3DResource_GetParent((IWineD3DResource *)pWineD3D,(IUnknown **)ppD3D9);
|
IWineD3D_GetParent(pWineD3D,(IUnknown **)ppD3D9);
|
||||||
IWineD3DResource_Release((IWineD3DResource *)pWineD3D);
|
IWineD3D_Release(pWineD3D);
|
||||||
} else {
|
} else {
|
||||||
FIXME("Call to IWineD3DDevice_GetDirect3D failed\n");
|
FIXME("Call to IWineD3DDevice_GetDirect3D failed\n");
|
||||||
*ppD3D9 = NULL;
|
*ppD3D9 = NULL;
|
||||||
|
@ -404,8 +404,8 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetRenderTarget(LPDIRECT3DDEVICE9 i
|
||||||
hr=IWineD3DDevice_GetRenderTarget(This->WineD3DDevice,RenderTargetIndex,&pRenderTarget);
|
hr=IWineD3DDevice_GetRenderTarget(This->WineD3DDevice,RenderTargetIndex,&pRenderTarget);
|
||||||
|
|
||||||
if (hr == D3D_OK && pRenderTarget != NULL) {
|
if (hr == D3D_OK && pRenderTarget != NULL) {
|
||||||
IWineD3DResource_GetParent((IWineD3DResource *)pRenderTarget,(IUnknown**)ppRenderTarget);
|
IWineD3DSurface_GetParent(pRenderTarget,(IUnknown**)ppRenderTarget);
|
||||||
IWineD3DResource_Release((IWineD3DResource *)pRenderTarget);
|
IWineD3DSurface_Release(pRenderTarget);
|
||||||
} else {
|
} else {
|
||||||
FIXME("Call to IWineD3DDevice_GetRenderTarget failed\n");
|
FIXME("Call to IWineD3DDevice_GetRenderTarget failed\n");
|
||||||
*ppRenderTarget = NULL;
|
*ppRenderTarget = NULL;
|
||||||
|
@ -435,8 +435,8 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetDepthStencilSurface(LPDIRECT3DDE
|
||||||
|
|
||||||
hr=IWineD3DDevice_GetDepthStencilSurface(This->WineD3DDevice,&pZStencilSurface);
|
hr=IWineD3DDevice_GetDepthStencilSurface(This->WineD3DDevice,&pZStencilSurface);
|
||||||
if(hr == D3D_OK && pZStencilSurface != NULL){
|
if(hr == D3D_OK && pZStencilSurface != NULL){
|
||||||
IWineD3DResource_GetParent((IWineD3DResource *)pZStencilSurface,(IUnknown**)ppZStencilSurface);
|
IWineD3DSurface_GetParent(pZStencilSurface,(IUnknown**)ppZStencilSurface);
|
||||||
IWineD3DResource_Release((IWineD3DResource *)pZStencilSurface);
|
IWineD3DSurface_Release(pZStencilSurface);
|
||||||
}else{
|
}else{
|
||||||
FIXME("Call to IWineD3DDevice_GetRenderTarget failed\n");
|
FIXME("Call to IWineD3DDevice_GetRenderTarget failed\n");
|
||||||
*ppZStencilSurface = NULL;
|
*ppZStencilSurface = NULL;
|
||||||
|
@ -838,8 +838,8 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetIndices(LPDIRECT3DDEVICE9 iface,
|
||||||
|
|
||||||
rc = IWineD3DDevice_GetIndices(This->WineD3DDevice, &retIndexData, &tmp);
|
rc = IWineD3DDevice_GetIndices(This->WineD3DDevice, &retIndexData, &tmp);
|
||||||
if (rc == D3D_OK && NULL != retIndexData) {
|
if (rc == D3D_OK && NULL != retIndexData) {
|
||||||
IWineD3DVertexBuffer_GetParent(retIndexData, (IUnknown **)ppIndexData);
|
IWineD3DIndexBuffer_GetParent(retIndexData, (IUnknown **)ppIndexData);
|
||||||
IWineD3DVertexBuffer_Release(retIndexData);
|
IWineD3DIndexBuffer_Release(retIndexData);
|
||||||
}else{
|
}else{
|
||||||
if(rc != D3D_OK) FIXME("Call to GetIndices failed\n");
|
if(rc != D3D_OK) FIXME("Call to GetIndices failed\n");
|
||||||
*ppIndexData = NULL;
|
*ppIndexData = NULL;
|
||||||
|
|
|
@ -321,8 +321,8 @@ HRESULT WINAPI IDirect3DDevice9Impl_GetVertexDeclaration(LPDIRECT3DDEVICE9 ifa
|
||||||
*ppDecl = NULL;
|
*ppDecl = NULL;
|
||||||
hr = IWineD3DDevice_GetVertexDeclaration(This->WineD3DDevice, &pTest);
|
hr = IWineD3DDevice_GetVertexDeclaration(This->WineD3DDevice, &pTest);
|
||||||
if (hr == D3D_OK && NULL != pTest) {
|
if (hr == D3D_OK && NULL != pTest) {
|
||||||
IWineD3DResource_GetParent(pTest, (IUnknown **)ppDecl);
|
IWineD3DVertexDeclaration_GetParent(pTest, (IUnknown **)ppDecl);
|
||||||
IWineD3DResource_Release(pTest);
|
IWineD3DVertexDeclaration_Release(pTest);
|
||||||
} else {
|
} else {
|
||||||
*ppDecl = NULL;
|
*ppDecl = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue