Initialize the DDCAPS structure of the DDRAW object at creation.

This commit is contained in:
Christian Costa 2002-10-10 23:27:49 +00:00 committed by Alexandre Julliard
parent ce35cc03a8
commit fe6c281b58
1 changed files with 6 additions and 0 deletions

View File

@ -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))
{