From 2ba19fb65026a07e42e547113caea33b726d37c4 Mon Sep 17 00:00:00 2001 From: Gregor Brunmar Date: Wed, 19 Dec 2007 20:48:58 +0000 Subject: [PATCH] * Forgot the struct name change in self-pointer * Inited self-pointer svn path=/trunk/; revision=31336 --- reactos/dll/directx/d3d9/d3d9_helpers.c | 2 ++ reactos/dll/directx/d3d9/d3d9_private.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/dll/directx/d3d9/d3d9_helpers.c b/reactos/dll/directx/d3d9/d3d9_helpers.c index 0643147aa1b..268b29dc236 100644 --- a/reactos/dll/directx/d3d9/d3d9_helpers.c +++ b/reactos/dll/directx/d3d9/d3d9_helpers.c @@ -88,6 +88,8 @@ HRESULT CreateD3D9(OUT LPDIRECT3D9 *ppDirect3D9) pDirect3D9->unknown004583 = 0; pDirect3D9->unknown004589 = 0; + pDirect3D9->lpInt = pDirect3D9; + *ppDirect3D9 = (LPDIRECT3D9)&pDirect3D9->lpVtbl; return ERROR_SUCCESS; diff --git a/reactos/dll/directx/d3d9/d3d9_private.h b/reactos/dll/directx/d3d9/d3d9_private.h index 04fb706a27b..bd2711dbe43 100644 --- a/reactos/dll/directx/d3d9/d3d9_private.h +++ b/reactos/dll/directx/d3d9/d3d9_private.h @@ -24,7 +24,7 @@ typedef struct _tagDIRECT3D9_INT_ /* 0x0004 */ CRITICAL_SECTION d3d9_cs; /* 0x001c */ DWORD unknown000007; /* 0x00000001 */ /* 0x0020 */ DWORD dwProcessId; -/* 0x0024 */ struct _tagDIRECTD3D9_INT_ * lpInt; +/* 0x0024 */ struct _tagDIRECT3D9_INT_ *lpInt; /* 0x0028 */ LONG dwRefCnt; /* Increases and decreases by AddRef() and Release() */ /* 0x002c */ DWORD unknown000011; /* 0x00000001 - Probably AdapterIndex */ /* 0x0030 */ GUID DisplayGuid; /*? Always {67685559-3106-11D0-B971-00AA00342F9F} ? */