wined3d: Fix null pointer check in IWineD3DImpl_GetPixelShader.

This commit is contained in:
Sagar Mittal 2006-04-13 20:48:59 -04:00 committed by Alexandre Julliard
parent b13c498c9d
commit 4f986c842f

View File

@ -4250,7 +4250,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetPixelShader(IWineD3DDevice *iface, IWineD3D
}
*ppShader = This->stateBlock->pixelShader;
if (NULL != ppShader) {
if (NULL != *ppShader) {
IWineD3DPixelShader_AddRef(*ppShader);
}
TRACE("(%p) : returning %p\n", This, *ppShader);