user32: Use wcslen instead of lstrlenW.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2021-04-16 13:48:12 +02:00 committed by Alexandre Julliard
parent 17540b9d7f
commit ed3460571d
1 changed files with 1 additions and 1 deletions

View File

@ -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);