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>
This commit is contained in:
Andrey Gusev 2017-02-16 20:34:11 +02:00 committed by Alexandre Julliard
parent 43b0dce203
commit 8936a841f5
1 changed files with 4 additions and 1 deletions

View File

@ -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;