Re: [PATCH] ddraw: fill dwNumFourCCCodes in ddraw7_GetCaps
14 Nov
2013
14 Nov
'13
11:26 a.m.
On 14 November 2013 17:17, Patrick Rudolph <siro(a)das-labor.org> wrote:
hr = IDirectDraw7_GetAvailableVidMem(iface, &ddscaps, &caps.dwVidMemTotal, &caps.dwVidMemFree); - wined3d_mutex_unlock(); if(FAILED(hr)) { WARN("IDirectDraw7::GetAvailableVidMem failed\n"); return hr; }
You now fail to release the mutex on the error path. Wrt. style, I realize ddraw isn't entirely consistent about this, but you'll want to put a space between the "if" and the '(', and but the '{' on a new line.
4410
Age (days ago)
4410
Last active (days ago)
0 comments
1 participants
participants (1)
-
Henri Verbeet