Author: greatlrd
Date: Sun Dec 16 00:25:39 2007
New Revision: 31259
URL:
http://svn.reactos.org/svn/reactos?rev=31259&view=rev
Log:
always initate ppSurf to NULL if createsurface fail, the ppSurf must be zero out.
Modified:
trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c
Modified: trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/Ddraw/dd…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c (original)
+++ trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c Sun Dec 16 00:25:39 2007
@@ -442,6 +442,8 @@
DX_WINDBG_trace();
// EnterCriticalSection(&ddcs);
+ *ppSurf = NULL;
+
_SEH_TRY
{
if (pDDSD->dwSize == sizeof(DDSURFACEDESC))
@@ -475,6 +477,8 @@
HRESULT ret;
DX_WINDBG_trace();
// EnterCriticalSection(&ddcs);
+ *ppSurf = NULL;
+
_SEH_TRY
{
ret = Internal_CreateSurface(This, pDDSD, ppSurf, pUnkOuter);