From fe6c281b58693550e0c51413b643e34acf1385f3 Mon Sep 17 00:00:00 2001 From: Christian Costa Date: Thu, 10 Oct 2002 23:27:49 +0000 Subject: [PATCH] Initialize the DDCAPS structure of the DDRAW object at creation. --- dlls/ddraw/ddraw/user.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/ddraw/ddraw/user.c b/dlls/ddraw/ddraw/user.c index 6b339e37028..e44d8a21abb 100644 --- a/dlls/ddraw/ddraw/user.c +++ b/dlls/ddraw/ddraw/user.c @@ -219,6 +219,9 @@ HRESULT User_DirectDraw_Create(const GUID* pGUID, LPDIRECTDRAW7* pIface, * CoCreateInstanced then Initialized. */ This->private = (User_DirectDrawImpl *)(This+1); + /* Initialize the DDCAPS structure */ + This->caps.dwSize = sizeof(This->caps); + hr = User_DirectDraw_Construct(This, ex); if (FAILED(hr)) HeapFree(GetProcessHeap(), 0, This); @@ -238,6 +241,9 @@ HRESULT User_DirectDraw_Initialize(IDirectDrawImpl *This, const GUID* guid) sizeof(User_DirectDrawImpl)); if (This->private == NULL) return E_OUTOFMEMORY; + /* Initialize the DDCAPS structure */ + This->caps.dwSize = sizeof(This->caps); + hr = User_DirectDraw_Construct(This, TRUE); /* XXX ex? */ if (FAILED(hr)) {