ddraw: Add missing unlock on an error path (Smatch).

This commit is contained in:
Michael Stefaniuc 2010-09-28 22:44:14 +02:00 committed by Alexandre Julliard
parent 5a2cc94105
commit ef104dc465
1 changed files with 1 additions and 0 deletions

View File

@ -2947,6 +2947,7 @@ static HRESULT CreateSurface(IDirectDraw7 *iface,
if((DDSD->ddsCaps.dwCaps & (DDSCAPS_BACKBUFFER | DDSCAPS_PRIMARYSURFACE)) == (DDSCAPS_BACKBUFFER | DDSCAPS_PRIMARYSURFACE))
{
WARN("Application wanted to create back buffer primary surface\n");
LeaveCriticalSection(&ddraw_cs);
return DDERR_INVALIDCAPS;
}