mirror of
https://github.com/reactos/wine.git
synced 2024-11-30 07:00:30 +00:00
wined3d: Fix null pointer check in IWineD3DImpl_GetPixelShader.
This commit is contained in:
parent
b13c498c9d
commit
4f986c842f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user