Author: greatlrd
Date: Sun Jun 17 00:04:01 2007
New Revision: 27209
URL:
http://svn.reactos.org/svn/reactos?rev=27209&view=rev
Log:
forget using addref in DirectDraw_QueryInterface, more werid bugs in ref
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 Jun 17 00:04:01 2007
@@ -51,9 +51,9 @@
/* DirectDraw7 Vtable */
newThis->lpVtbl = &DirectDraw7_Vtable;
newThis->lpLcl = This->lpLcl;
- newThis->dwIntRefCnt = 1;
newThis->lpLink = This;
*obj = &newThis->lpVtbl;
+ Main_DirectDraw_AddRef((LPDIRECTDRAW7)newThis);
}
}
else if (IsEqualGUID(&IID_IDirectDraw4, id))
@@ -70,9 +70,9 @@
/* DirectDraw4 Vtable */
newThis->lpVtbl = &DirectDraw4_Vtable;
newThis->lpLcl = This->lpLcl;
- newThis->dwIntRefCnt = 1;
newThis->lpLink = This;
*obj = &newThis->lpVtbl;
+ Main_DirectDraw_AddRef((LPDIRECTDRAW7)newThis);
}
}
else if (IsEqualGUID(&IID_IDirectDraw2, id))
@@ -89,9 +89,9 @@
/* DirectDraw4 Vtable */
newThis->lpVtbl = &DirectDraw2_Vtable;
newThis->lpLcl = This->lpLcl;
- newThis->dwIntRefCnt = 1;
newThis->lpLink = This;
*obj = &newThis->lpVtbl;
+ Main_DirectDraw_AddRef((LPDIRECTDRAW7)newThis);
}
}
else if (IsEqualGUID(&IID_IDirectDraw, id))
@@ -108,9 +108,9 @@
/* DirectDraw4 Vtable */
newThis->lpVtbl = &DirectDraw_Vtable;
newThis->lpLcl = This->lpLcl;
- newThis->dwIntRefCnt = 1;
newThis->lpLink = This;
*obj = &newThis->lpVtbl;
+ Main_DirectDraw_AddRef((LPDIRECTDRAW7)newThis);
}
}
else