Andrey Gusev : xinput1_3: Avoid spamming FIXME for XInputGetKeystroke.

Alexandre Julliard julliard at winehq.org
Thu Feb 16 15:12:30 CST 2017


Module: wine
Branch: master
Commit: 8936a841f58f5888dd8ffd122895f2291786aa02
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8936a841f58f5888dd8ffd122895f2291786aa02

Author: Andrey Gusev <andrey.goosev at gmail.com>
Date:   Thu Feb 16 20:34:11 2017 +0200

xinput1_3: Avoid spamming FIXME for XInputGetKeystroke.

Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
Signed-off-by: Bruno Jesus <00cpxxx at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/xinput1_3/xinput1_3_main.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dlls/xinput1_3/xinput1_3_main.c b/dlls/xinput1_3/xinput1_3_main.c
index 6c559de..402bd2f 100644
--- a/dlls/xinput1_3/xinput1_3_main.c
+++ b/dlls/xinput1_3/xinput1_3_main.c
@@ -112,7 +112,10 @@ DWORD WINAPI DECLSPEC_HOTPATCH XInputGetStateEx(DWORD index, XINPUT_STATE_EX* st
 
 DWORD WINAPI XInputGetKeystroke(DWORD index, DWORD reserved, PXINPUT_KEYSTROKE keystroke)
 {
-    FIXME("(index %u, reserved %u, keystroke %p) Stub!\n", index, reserved, keystroke);
+    static int warn_once;
+
+    if (!warn_once++)
+        FIXME("(index %u, reserved %u, keystroke %p) Stub!\n", index, reserved, keystroke);
 
     if (index >= XUSER_MAX_COUNT)
         return ERROR_BAD_ARGUMENTS;




More information about the wine-cvs mailing list