Initialize the DDCAPS structure of the DDRAW object at creation.
diff --git a/dlls/ddraw/ddraw/user.c b/dlls/ddraw/ddraw/user.c
index 6b339e3..e44d8a2 100644
--- a/dlls/ddraw/ddraw/user.c
+++ b/dlls/ddraw/ddraw/user.c
@@ -219,6 +219,9 @@
* 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 @@
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))
{