From 8586c5101638143e7551db7c72067674a2817b38 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 10 Jan 2016 20:17:30 +0100 Subject: Windows: Avoid wrong update of configuration XML file caused by not using the correct window handle to get some GUI fields content. Some code cleanup. --- src/Common/Dlgcode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Common/Dlgcode.c') diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c index cc7f0e74..c74b9ef7 100644 --- a/src/Common/Dlgcode.c +++ b/src/Common/Dlgcode.c @@ -2251,7 +2251,7 @@ uint32 ReadEncryptionThreadPoolFreeCpuCountLimit () } -BOOL LoadSysEncSettings (HWND hwndDlg) +BOOL LoadSysEncSettings () { BOOL status = TRUE; DWORD size = 0; @@ -3947,7 +3947,7 @@ start: { #ifndef SETUP - LoadSysEncSettings (NULL); + LoadSysEncSettings (); if (!CreateDriverSetupMutex ()) { @@ -10657,7 +10657,7 @@ BOOL InitSecurityTokenLibrary (HWND hwndDlg) try { - SecurityToken::InitLibrary (SecurityTokenLibraryPath, auto_ptr (new PinRequestHandler(hwndDlg)), auto_ptr (new WarningHandler(hwndDlg))); + SecurityToken::InitLibrary (SecurityTokenLibraryPath, auto_ptr (new PinRequestHandler(MainDlg)), auto_ptr (new WarningHandler(MainDlg))); } catch (Exception &e) { -- cgit v1.2.3