ddraw: Remove a redundant check from ddraw7_SetCooperativeLevel().

This commit is contained in:
Henri Verbeet 2011-08-29 18:58:58 +02:00 committed by Alexandre Julliard
parent cad9cbe445
commit 93b5f681d9
1 changed files with 0 additions and 6 deletions

View File

@ -717,12 +717,6 @@ static HRESULT WINAPI ddraw7_SetCooperativeLevel(IDirectDraw7 *iface, HWND hwnd,
return DDERR_INVALIDPARAMS;
}
}
else if( !(cooplevel & DDSCL_NORMAL) )
{
TRACE("(%p) SetCooperativeLevel needs at least SetFocusWindow or Exclusive or Normal mode\n", This);
LeaveCriticalSection(&ddraw_cs);
return DDERR_INVALIDPARAMS;
}
if ((This->cooperative_level & DDSCL_EXCLUSIVE)
&& (hwnd != window || !(cooplevel & DDSCL_EXCLUSIVE)))