Module: wine Branch: refs/heads/master Commit: 4f986c842fc9d53347fc89b4966310f09229e86a URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=4f986c842fc9d53347fc89b4...
Author: Sagar Mittal sagar.mittal@gmail.com Date: Thu Apr 13 20:48:59 2006 -0400
wined3d: Fix null pointer check in IWineD3DImpl_GetPixelShader.
---
dlls/wined3d/device.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 3d4ae9e..ba2cceb 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -4250,7 +4250,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetPix }
*ppShader = This->stateBlock->pixelShader; - if (NULL != ppShader) { + if (NULL != *ppShader) { IWineD3DPixelShader_AddRef(*ppShader); } TRACE("(%p) : returning %p\n", This, *ppShader);