mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 08:13:18 +00:00
joy.cpl: Use msvcrt wide string functions.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0a777f0bcc
commit
032052fca6
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue