wined3d: Only addref clippers if one exists.

This commit is contained in:
Stefan Dösinger 2007-05-10 21:45:51 +02:00 committed by Alexandre Julliard
parent 4295b18950
commit 093261b729
1 changed files with 3 additions and 1 deletions

View File

@ -3504,7 +3504,9 @@ HRESULT WINAPI IWineD3DSurfaceImpl_GetClipper(IWineD3DSurface *iface, IWineD3DCl
TRACE("(%p)->(%p)\n", This, clipper);
*clipper = This->clipper;
IWineD3DClipper_AddRef(*clipper);
if(*clipper) {
IWineD3DClipper_AddRef(*clipper);
}
return WINED3D_OK;
}