Author: mbosma
Date: Tue Dec 12 21:54:50 2006
New Revision: 25132
URL:
http://svn.reactos.org/svn/reactos?rev=25132&view=rev
Log:
Check if This and ThisSrc are NULL.
Modified:
trunk/reactos/dll/directx/ddraw/main/ddraw_main.c
trunk/reactos/dll/directx/ddraw/main/surface_main.c
Modified: trunk/reactos/dll/directx/ddraw/main/ddraw_main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/main/ddr…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/main/ddraw_main.c (original)
+++ trunk/reactos/dll/directx/ddraw/main/ddraw_main.c Tue Dec 12 21:54:50 2006
@@ -109,7 +109,7 @@
}
}
}
- return This->dwIntRefCnt;
+ return This ? This->dwIntRefCnt : 0;
}
/*
Modified: trunk/reactos/dll/directx/ddraw/main/surface_main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/main/sur…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/main/surface_main.c (original)
+++ trunk/reactos/dll/directx/ddraw/main/surface_main.c Tue Dec 12 21:54:50 2006
@@ -86,7 +86,7 @@
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)