Commit 6a0e7116 authored by Vitaly Budovski's avatar Vitaly Budovski Committed by Alexandre Julliard

dinput: Return an error if both DISCL_EXCLUSIVE and DISCL_BACKGROUND are set.

parent 63585380
...@@ -368,6 +368,10 @@ static HRESULT WINAPI SysMouseAImpl_SetCooperativeLevel( ...@@ -368,6 +368,10 @@ static HRESULT WINAPI SysMouseAImpl_SetCooperativeLevel(
_dump_cooperativelevel_DI(dwflags); _dump_cooperativelevel_DI(dwflags);
} }
if (dwflags & DISCL_EXCLUSIVE && dwflags & DISCL_BACKGROUND) {
return DIERR_UNSUPPORTED;
}
/* Store the window which asks for the mouse */ /* Store the window which asks for the mouse */
if (!hwnd) if (!hwnd)
hwnd = GetDesktopWindow(); hwnd = GetDesktopWindow();
......
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