[PATCH 4/4] user32: Use wcslen instead of lstrlenW.

Rémi Bernon rbernon at codeweavers.com
Fri Apr 16 06:48:12 CDT 2021


Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
 dlls/user32/rawinput.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/user32/rawinput.c b/dlls/user32/rawinput.c
index bd204765700..bf60e8bfb15 100644
--- a/dlls/user32/rawinput.c
+++ b/dlls/user32/rawinput.c
@@ -674,7 +674,7 @@ UINT WINAPI GetRawInputDeviceInfoW(HANDLE handle, UINT command, void *data, UINT
         }
         else
         {
-            *data_size = lstrlenW(device->detail->DevicePath) + 1;
+            *data_size = wcslen(device->detail->DevicePath) + 1;
             to_copy = device->detail->DevicePath;
         }
         to_copy_bytes = *data_size * sizeof(WCHAR);
-- 
2.31.0




More information about the wine-devel mailing list