mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
always initate ppSurf to NULL if createsurface fail, the ppSurf must be zero out.
svn path=/trunk/; revision=31259
This commit is contained in:
parent
4485c07783
commit
567306df67
1 changed files with 4 additions and 0 deletions
|
@ -442,6 +442,8 @@ Main_DirectDraw_CreateSurface (LPDDRAWI_DIRECTDRAW_INT This, LPDDSURFACEDESC pDD
|
|||
DX_WINDBG_trace();
|
||||
|
||||
// EnterCriticalSection(&ddcs);
|
||||
*ppSurf = NULL;
|
||||
|
||||
_SEH_TRY
|
||||
{
|
||||
if (pDDSD->dwSize == sizeof(DDSURFACEDESC))
|
||||
|
@ -475,6 +477,8 @@ Main_DirectDraw_CreateSurface4(LPDDRAWI_DIRECTDRAW_INT This, LPDDSURFACEDESC2 pD
|
|||
HRESULT ret;
|
||||
DX_WINDBG_trace();
|
||||
// EnterCriticalSection(&ddcs);
|
||||
*ppSurf = NULL;
|
||||
|
||||
_SEH_TRY
|
||||
{
|
||||
ret = Internal_CreateSurface(This, pDDSD, ppSurf, pUnkOuter);
|
||||
|
|
Loading…
Reference in a new issue