* Forgot the struct name change in self-pointer
authorGregor Brunmar <gbrunmar.ros@gmail.com>
Wed, 19 Dec 2007 20:48:58 +0000 (20:48 +0000)
committerGregor Brunmar <gbrunmar.ros@gmail.com>
Wed, 19 Dec 2007 20:48:58 +0000 (20:48 +0000)
* Inited self-pointer

svn path=/trunk/; revision=31336

reactos/dll/directx/d3d9/d3d9_helpers.c
reactos/dll/directx/d3d9/d3d9_private.h

index 0643147..268b29d 100644 (file)
@@ -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;
index 04fb706..bd2711d 100644 (file)
@@ -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} ? */