joy.cpl: Use variable of correct type to store LSTATUS value.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sebastian Lackner 2016-09-13 09:03:17 +02:00 committed by Alexandre Julliard
parent 2a5f05e316
commit 1224bfaa35
1 changed files with 3 additions and 3 deletions

View File

@ -234,7 +234,7 @@ static void initialize_disabled_joysticks_list(HWND hwnd)
static const WCHAR disabled_str[] = {'d','i','s','a','b','l','e','d','\0'}; static const WCHAR disabled_str[] = {'d','i','s','a','b','l','e','d','\0'};
HKEY hkey, appkey; HKEY hkey, appkey;
DWORD values = 0; DWORD values = 0;
HRESULT hr; LSTATUS status;
DWORD i; DWORD i;
SendDlgItemMessageW(hwnd, IDC_DISABLEDLIST, LB_RESETCONTENT, 0, 0); SendDlgItemMessageW(hwnd, IDC_DISABLEDLIST, LB_RESETCONTENT, 0, 0);
@ -248,9 +248,9 @@ static void initialize_disabled_joysticks_list(HWND hwnd)
DWORD name_len = MAX_PATH, data_len = MAX_PATH; DWORD name_len = MAX_PATH, data_len = MAX_PATH;
WCHAR buf_name[MAX_PATH + 9], buf_data[MAX_PATH]; WCHAR buf_name[MAX_PATH + 9], buf_data[MAX_PATH];
hr = RegEnumValueW(hkey, i, buf_name, &name_len, NULL, NULL, (BYTE*) buf_data, &data_len); status = RegEnumValueW(hkey, i, buf_name, &name_len, NULL, NULL, (BYTE*) buf_data, &data_len);
if (SUCCEEDED(hr) && !lstrcmpW(disabled_str, buf_data)) if (status == ERROR_SUCCESS && !lstrcmpW(disabled_str, buf_data))
SendDlgItemMessageW(hwnd, IDC_DISABLEDLIST, LB_ADDSTRING, 0, (LPARAM) buf_name); SendDlgItemMessageW(hwnd, IDC_DISABLEDLIST, LB_ADDSTRING, 0, (LPARAM) buf_name);
} }