Francois Gouget : xinput1_3: Fix the spelling of a WARN() message and helper.

Alexandre Julliard julliard at winehq.org
Thu Feb 17 15:33:59 CST 2022


Module: wine
Branch: master
Commit: 30ab3557e9542cc4a1e29a980f6d2aa39aa77994
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=30ab3557e9542cc4a1e29a980f6d2aa39aa77994

Author: Francois Gouget <fgouget at free.fr>
Date:   Thu Feb 17 20:53:59 2022 +0100

xinput1_3: Fix the spelling of a WARN() message and helper.

Signed-off-by: Francois Gouget <fgouget at free.fr>
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/xinput1_3/main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/xinput1_3/main.c b/dlls/xinput1_3/main.c
index c8ce6622dcb..909ef9e7dfd 100644
--- a/dlls/xinput1_3/main.c
+++ b/dlls/xinput1_3/main.c
@@ -470,7 +470,7 @@ static void get_registry_keys(HKEY *defkey, HKEY *appkey)
     }
 }
 
-static BOOL device_is_overriden(HANDLE device)
+static BOOL device_is_overridden(HANDLE device)
 {
     WCHAR name[MAX_PATH], buffer[MAX_PATH];
     DWORD size = sizeof(buffer);
@@ -519,8 +519,8 @@ static BOOL try_add_device(const WCHAR *device_path)
     else if (caps.Usage != HID_USAGE_GENERIC_GAMEPAD && caps.Usage != HID_USAGE_GENERIC_JOYSTICK &&
              caps.Usage != HID_USAGE_GENERIC_MULTI_AXIS_CONTROLLER)
         WARN("ignoring HID device, unsupported usage %04x:%04x\n", caps.UsagePage, caps.Usage);
-    else if (device_is_overriden(device))
-        WARN("ignoring HID device, overriden for dinput\n");
+    else if (device_is_overridden(device))
+        WARN("ignoring HID device, overridden for dinput\n");
     else if (!controller_init(&controllers[i], preparsed, &caps, device, device_path))
         WARN("ignoring HID device, failed to initialize\n");
     else




More information about the wine-cvs mailing list