From 93b5f681d9c98b29491cea6b901002d8e1c4e714 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 29 Aug 2011 18:58:58 +0200 Subject: [PATCH] ddraw: Remove a redundant check from ddraw7_SetCooperativeLevel(). --- dlls/ddraw/ddraw.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c index 20c8df7436..99eb1d6382 100644 --- a/dlls/ddraw/ddraw.c +++ b/dlls/ddraw/ddraw.c @@ -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))) -- 2.32.0.93.g670b81a890