Commit 1224bfaa authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

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

parent 2a5f05e3
...@@ -234,7 +234,7 @@ static void initialize_disabled_joysticks_list(HWND hwnd) ...@@ -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) ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment