mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
Initialize the DDCAPS structure of the DDRAW object at creation.
This commit is contained in:
parent
7ea3a29eca
commit
afe785c4d5
1 changed files with 6 additions and 0 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue