ddraw: Fill dwNumFourCCCodes in ddraw7_GetCaps.

This commit is contained in:
Patrick Rudolph 2013-11-14 19:39:05 +01:00 committed by Alexandre Julliard
parent dd545c3e37
commit 626a3c6a5f

View File

@ -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;
}