Commit 1ac07906 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

ddraw: Fix double unlock of critical section.

parent 295a0cdd
......@@ -2333,14 +2333,15 @@ IDirectDrawSurfaceImpl_SetSurfaceDesc(IDirectDrawSurface7 *iface,
if(hr != WINED3D_OK)
{
/* No need for a trace here, wined3d does that for us */
LeaveCriticalSection(&ddraw_cs);
switch(hr)
{
case WINED3DERR_INVALIDCALL: return DDERR_INVALIDPARAMS;
default: break; /* Go on */
case WINED3DERR_INVALIDCALL:
LeaveCriticalSection(&ddraw_cs);
return DDERR_INVALIDPARAMS;
default:
break; /* Go on */
}
}
}
This->surface_desc = *DDSD;
......
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