dinput: Return an error if both DISCL_EXCLUSIVE and DISCL_BACKGROUND
are set
Vitaly Budovski
vbudovsk at cs.rmit.edu.au
Tue Feb 21 05:00:00 CST 2006
dinput: Return an error if both DISCL_EXCLUSIVE and DISCL_BACKGROUND are set
---
dlls/dinput/mouse.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
-------------- next part --------------
diff --git a/dlls/dinput/mouse.c b/dlls/dinput/mouse.c
index 6570d1f..9b06b57 100644
--- a/dlls/dinput/mouse.c
+++ b/dlls/dinput/mouse.c
@@ -368,6 +368,10 @@ static HRESULT WINAPI SysMouseAImpl_SetC
_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();
--
1.0.4
More information about the wine-patches
mailing list