diff --git a/localization.c b/localization.c index 9714d6e..8db12ae 100644 --- a/localization.c +++ b/localization.c @@ -97,7 +97,10 @@ GetGUILanguage(void) LONG status = RegOpenKeyEx(HKEY_CURRENT_USER, GUI_REGKEY_HKCU, 0, KEY_READ, ®key); if (status == ERROR_SUCCESS) + { GetRegistryValueNumeric(regkey, _T("ui_language"), &value); + RegCloseKey(regkey); + } gui_language = ( value != 0 ? value : GetUserDefaultUILanguage() ); InitMUILanguage(gui_language); diff --git a/openvpn.c b/openvpn.c index 2ee1427..6379a8d 100644 --- a/openvpn.c +++ b/openvpn.c @@ -2078,6 +2078,7 @@ StatusDialogFunc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) return TRUE; case WM_NCDESTROY: + KillTimer(hwndDlg, IDT_STOP_TIMER); RemoveProp(hwndDlg, cfgProp); break;