1. did not set the DDRAWILCL_DIRECTDRAW7 to This->lpLcl->dwLocalFlags
2. did not initate the This->lpLcl->dwLocalRefCnt to 0 and Main_DDrawSurface_AddRef did wrong count then
svn path=/trunk/; revision=25017
return DDERR_INVALIDDIRECTDRAWGUID;
}
-
if (This == NULL)
{
/* We do not have any DirectDraw interface alloc */
/* FIXME cleanup */
return DDERR_OUTOFMEMORY;
}
-
+
This->lpLcl->lpGbl = &ddgbl;
+ This->lpLcl->dwLocalRefCnt = 0;
+ This->lpLcl->dwLocalFlags = DDRAWILCL_DIRECTDRAW7;
*pIface = (LPDIRECTDRAW)This;
{
return DDERR_INVALIDPARAMS;
}
-
+
if (StartDirectDraw((LPDIRECTDRAW*)This, pGUID) == DD_OK);
{