Skip to content
Snippets Groups Projects
Commit 6a0e7116 authored by Vitaly Budovski's avatar Vitaly Budovski Committed by Alexandre Julliard
Browse files

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

parent 63585380
No related branches found
No related tags found
No related merge requests found
......@@ -368,6 +368,10 @@ static HRESULT WINAPI SysMouseAImpl_SetCooperativeLevel(
_dump_cooperativelevel_DI(dwflags);
}
if (dwflags & DISCL_EXCLUSIVE && dwflags & DISCL_BACKGROUND) {
return DIERR_UNSUPPORTED;
}
/* Store the window which asks for the mouse */
if (!hwnd)
hwnd = GetDesktopWindow();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment