Module: wine Branch: master Commit: ed3460571d7bd859e8dd032bee925c88467a2bbf URL: https://source.winehq.org/git/wine.git/?a=commit;h=ed3460571d7bd859e8dd032be...
Author: Rémi Bernon rbernon@codeweavers.com Date: Fri Apr 16 13:48:12 2021 +0200
user32: Use wcslen instead of lstrlenW.
Signed-off-by: Rémi Bernon rbernon@codeweavers.com Signed-off-by: Alexandre Julliard julliard@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);