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.

This commit is contained in:
Mounir IDRASSI committed 2016-01-10 20:45:18 +01:00
1 parent fb430c403b
commit 8586c51016
5 files changed
+12 -12

No files matched your search

+3 -3
View File
@@ -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 <GetPinFunctor> (new PinRequestHandler(hwndDlg)), auto_ptr <SendExceptionFunctor> (new WarningHandler(hwndDlg)));
SecurityToken::InitLibrary (SecurityTokenLibraryPath, auto_ptr <GetPinFunctor> (new PinRequestHandler(MainDlg)), auto_ptr <SendExceptionFunctor> (new WarningHandler(MainDlg)));
}
catch (Exception &e)
{