Rémi Bernon : joy.cpl: Use msvcrt wide string functions.
Module: wine Branch: master Commit: 032052fca6a47d44e7a2fa0623bc86ff2c783d89 URL: https://source.winehq.org/git/wine.git/?a=commit;h=032052fca6a47d44e7a2fa062... Author: Rémi Bernon <rbernon(a)codeweavers.com> Date: Thu Sep 23 14:01:51 2021 +0200 joy.cpl: Use msvcrt wide string functions. Signed-off-by: Rémi Bernon <rbernon(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/joy.cpl/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/joy.cpl/main.c b/dlls/joy.cpl/main.c index 226f36051a6..43e124a0a33 100644 --- a/dlls/joy.cpl/main.c +++ b/dlls/joy.cpl/main.c @@ -212,7 +212,7 @@ static void enable_joystick(WCHAR *joy_name, BOOL enable) get_app_key(&hkey, &appkey); if (!enable) - set_config_key(hkey, appkey, joy_name, L"disabled", lstrlenW(L"disabled")); + set_config_key(hkey, appkey, joy_name, L"disabled", wcslen(L"disabled")); else set_config_key(hkey, appkey, joy_name, NULL, 0); @@ -240,7 +240,7 @@ static void initialize_disabled_joysticks_list(HWND hwnd) status = RegEnumValueW(hkey, i, buf_name, &name_len, NULL, NULL, (BYTE*) buf_data, &data_len); - if (status == ERROR_SUCCESS && !lstrcmpW(L"disabled", buf_data)) + if (status == ERROR_SUCCESS && !wcscmp(L"disabled", buf_data)) SendDlgItemMessageW(hwnd, IDC_DISABLEDLIST, LB_ADDSTRING, 0, (LPARAM) buf_name); }
participants (1)
-
Alexandre Julliard