[PATCH] xinput1_3: Avoid spamming FIXME for XInputGetKeystroke.
Andrey Gusev
andrey.goosev at gmail.com
Thu Feb 16 12:34:11 CST 2017
This is for The Testament of Sherlock Holmes.
Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
---
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;
--
2.7.4
More information about the wine-patches
mailing list