dinput: Return an error if both DISCL_EXCLUSIVE and DISCL_BACKGROUND are set.
This commit is contained in:
parent
63585380a9
commit
6a0e711681
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue