Windows: Set bPrebootPasswordDlgMode to FALSE at the correct code location.

This commit is contained in:
Mounir IDRASSI 2015-10-12 03:27:50 +02:00
parent ee3fa19ed9
commit 23b69537a5

View File

@ -4600,7 +4600,7 @@ void __cdecl mountThreadFunction (void *hwndDlgArg)
HWND hwndDlg =(HWND) hwndDlgArg; HWND hwndDlg =(HWND) hwndDlgArg;
// Disable parent dialog during processing to avoid user interaction // Disable parent dialog during processing to avoid user interaction
EnableWindow(hwndDlg, FALSE); EnableWindow(hwndDlg, FALSE);
finally_do_arg (HWND, hwndDlg, { EnableWindow(finally_arg, TRUE); }); finally_do_arg (HWND, hwndDlg, { EnableWindow(finally_arg, TRUE); bPrebootPasswordDlgMode = FALSE;});
Mount (hwndDlg, 0, 0, -1); Mount (hwndDlg, 0, 0, -1);
} }
@ -7244,8 +7244,6 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
if (CheckMountList (hwndDlg, FALSE)) if (CheckMountList (hwndDlg, FALSE))
_beginthread(mountThreadFunction, 0, hwndDlg); _beginthread(mountThreadFunction, 0, hwndDlg);
bPrebootPasswordDlgMode = FALSE;
} }
break; break;
} }