Rémi Bernon : user32: Use wcslen instead of lstrlenW.

Alexandre Julliard julliard at winehq.org
Fri Apr 16 15:56:22 CDT 2021


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

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Fri Apr 16 13:48:12 2021 +0200

user32: Use wcslen instead of lstrlenW.

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

---

 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 a8e10cfb0ca..7796a65641e 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);




More information about the wine-cvs mailing list