Author: greatlrd
Date: Sun Dec 3 18:42:12 2006
New Revision: 25035
URL:
http://svn.reactos.org/svn/reactos?rev=25035&view=rev
Log:
fixed a refer counter that was zero out, but it should be have set to 1
Modified:
trunk/reactos/dll/directx/ddraw/startup.c
Modified: trunk/reactos/dll/directx/ddraw/startup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/startup.…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/startup.c (original)
+++ trunk/reactos/dll/directx/ddraw/startup.c Sun Dec 3 18:42:12 2006
@@ -36,7 +36,9 @@
if (This->lpLink == NULL)
{
+
RtlZeroMemory(&ddgbl, sizeof(DDRAWI_DIRECTDRAW_GBL));
+ This->lpLcl->lpGbl->dwRefCnt++;
if (ddgbl.lpDDCBtmp == NULL)
{