Commit 626a3c6a authored by Patrick Rudolph's avatar Patrick Rudolph Committed by Alexandre Julliard

ddraw: Fill dwNumFourCCCodes in ddraw7_GetCaps.

parent dd545c3e
......@@ -1474,9 +1474,18 @@ static HRESULT WINAPI ddraw7_GetCaps(IDirectDraw7 *iface, DDCAPS *DriverCaps, DD
}
hr = IDirectDraw7_GetAvailableVidMem(iface, &ddscaps, &caps.dwVidMemTotal, &caps.dwVidMemFree);
wined3d_mutex_unlock();
if(FAILED(hr)) {
if (FAILED(hr))
{
WARN("IDirectDraw7::GetAvailableVidMem failed\n");
wined3d_mutex_unlock();
return hr;
}
hr = IDirectDraw7_GetFourCCCodes(iface, &caps.dwNumFourCCCodes, NULL);
wined3d_mutex_unlock();
if (FAILED(hr))
{
WARN("IDirectDraw7::GetFourCCCodes failed\n");
return hr;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment