dinput: Use variable of correct type to store HRESULT value.
Sebastian Lackner
sebastian at fds-team.de
Tue Sep 13 02:02:36 CDT 2016
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
.../dlls/dinput/dinput_main.c:413:23: warning: Assigning 'HRESULT' (aka 'int') to 'int' [wine-hresult-check]
for (j = 0, r = S_OK; SUCCEEDED(r); j++) {
^
.../dlls/dinput/dinput_main.c:416:15: warning: Assigning 'HRESULT' (aka 'int') to 'int' [wine-hresult-check]
r = dinput_devices[i]->enum_deviceA(dwDevType, dwFlags, &devInstance, This->dwVersion, j);
^
.../dlls/dinput/dinput_main.c:417:19: warning: Comparing 'int' against 'HRESULT' (aka 'int') [wine-hresult-check]
if (r == S_OK)
^
dlls/dinput/dinput_main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/dinput/dinput_main.c b/dlls/dinput/dinput_main.c
index 98ab273..8834da7 100644
--- a/dlls/dinput/dinput_main.c
+++ b/dlls/dinput/dinput_main.c
@@ -393,7 +393,8 @@ static HRESULT WINAPI IDirectInputAImpl_EnumDevices(
IDirectInputImpl *This = impl_from_IDirectInput7A(iface);
DIDEVICEINSTANCEA devInstance;
unsigned int i;
- int j, r;
+ int j;
+ HRESULT r;
TRACE("(this=%p,0x%04x '%s',%p,%p,0x%04x)\n",
This, dwDevType, _dump_DIDEVTYPE_value(dwDevType, This->dwVersion),
--
2.9.0
More information about the wine-patches
mailing list