Module: wine Branch: master Commit: 8936a841f58f5888dd8ffd122895f2291786aa02 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8936a841f58f5888dd8ffd1228...
Author: Andrey Gusev andrey.goosev@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@gmail.com Signed-off-by: Bruno Jesus 00cpxxx@gmail.com Signed-off-by: Alexandre Julliard julliard@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;