ddraw: Fix double unlock of critical section.
This commit is contained in:
parent
295a0cddea
commit
1ac07906ae
|
@ -2333,14 +2333,15 @@ IDirectDrawSurfaceImpl_SetSurfaceDesc(IDirectDrawSurface7 *iface,
|
||||||
if(hr != WINED3D_OK)
|
if(hr != WINED3D_OK)
|
||||||
{
|
{
|
||||||
/* No need for a trace here, wined3d does that for us */
|
/* No need for a trace here, wined3d does that for us */
|
||||||
LeaveCriticalSection(&ddraw_cs);
|
|
||||||
switch(hr)
|
switch(hr)
|
||||||
{
|
{
|
||||||
case WINED3DERR_INVALIDCALL: return DDERR_INVALIDPARAMS;
|
case WINED3DERR_INVALIDCALL:
|
||||||
default: break; /* Go on */
|
LeaveCriticalSection(&ddraw_cs);
|
||||||
|
return DDERR_INVALIDPARAMS;
|
||||||
|
default:
|
||||||
|
break; /* Go on */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
This->surface_desc = *DDSD;
|
This->surface_desc = *DDSD;
|
||||||
|
|
Loading…
Reference in New Issue