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

Alexandre Julliard julliard at wine.codeweavers.com
Tue Feb 28 06:08:27 CST 2006


Module: wine
Branch: refs/heads/master
Commit: 6a0e711681b6f516fab5464483bf73eef79adb9c
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=6a0e711681b6f516fab5464483bf73eef79adb9c

Author: Vitaly Budovski <vbudovsk at cs.rmit.edu.au>
Date:   Tue Feb 21 22:00:00 2006 +1100

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

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




More information about the wine-cvs mailing list