Check if This and ThisSrc are NULL.

svn path=/trunk/; revision=25132
This commit is contained in:
Maarten Bosma
2006-12-12 18:54:50 +00:00
parent f1c6b23eaa
commit 5c0d1ea97a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ Main_DirectDraw_Release (LPDIRECTDRAW7 iface)
}
}
}
return This->dwIntRefCnt;
return This ? This->dwIntRefCnt : 0;
}
/*
@@ -86,7 +86,7 @@ HRESULT WINAPI Main_DDrawSurface_Blt(LPDIRECTDRAWSURFACE7 iface, LPRECT rdst,
BltData.Blt = ThisDest->lpLcl->lpGbl->lpDD->lpDDCBtmp->cbDDSurfaceCallbacks.Blt;
BltData.lpDDDestSurface = ThisDest->lpLcl;
BltData.lpDDSrcSurface = ThisSrc->lpLcl;
BltData.lpDDSrcSurface = ThisSrc ? ThisSrc->lpLcl : 0;
BltData.dwFlags = dwFlags;
if (rdst != NULL)