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

This commit is contained in:
Vitaly Budovski 2006-02-21 22:00:00 +11:00 committed by Alexandre Julliard
parent 63585380a9
commit 6a0e711681
1 changed files with 4 additions and 0 deletions

View File

@ -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();