From 4d6cc7d9a684aed49249d7c14c110ae6b480577b Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sat, 16 Jun 2007 20:04:01 +0000 Subject: [PATCH] forget using addref in DirectDraw_QueryInterface, more werid bugs in ref svn path=/trunk/; revision=27209 --- reactos/dll/directx/ddraw/Ddraw/ddraw_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c b/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c index da89eaa8c55..364b1d5d69e 100644 --- a/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c +++ b/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c @@ -51,9 +51,9 @@ Main_DirectDraw_QueryInterface (LPDIRECTDRAW7 iface, /* 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 @@ Main_DirectDraw_QueryInterface (LPDIRECTDRAW7 iface, /* 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 @@ Main_DirectDraw_QueryInterface (LPDIRECTDRAW7 iface, /* 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 @@ Main_DirectDraw_QueryInterface (LPDIRECTDRAW7 iface, /* 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