Skip to content
Snippets Groups Projects
Commit afe785c4 authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard
Browse files

Initialize the DDCAPS structure of the DDRAW object at creation.

parent 7ea3a29e
No related branches found
No related tags found
No related merge requests found
......@@ -391,6 +391,9 @@ HRESULT HAL_DirectDraw_Create(const GUID* pGUID, LPDIRECTDRAW7* pIface,
* CoCreateInstanced then Initialized. */
This->private = (HAL_DirectDrawImpl *)(This+1);
/* Initialize the DDCAPS structure */
This->caps.dwSize = sizeof(This->caps);
hr = HAL_DirectDraw_Construct(This, ex);
if (FAILED(hr))
HeapFree(GetProcessHeap(), 0, This);
......@@ -413,6 +416,9 @@ HRESULT HAL_DirectDraw_Initialize(IDirectDrawImpl *This, const GUID* guid)
sizeof(HAL_DirectDrawImpl));
if (This->private == NULL) return E_OUTOFMEMORY;
/* Initialize the DDCAPS structure */
This->caps.dwSize = sizeof(This->caps);
hr = HAL_DirectDraw_Construct(This, TRUE); /* XXX ex? */
if (FAILED(hr))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment