From 7832d712fda877001ea5ae825d1a07d424cb72b7 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Wed, 16 Dec 2015 21:56:54 +0100 Subject: Windows: solve issue with system favorites not being able to mount at A: --- src/Mount/Mount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Mount') diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c index 2ba55e49..2af48def 100644 --- a/src/Mount/Mount.c +++ b/src/Mount/Mount.c @@ -4399,7 +4399,7 @@ static BOOL Mount (HWND hwndDlg, int nDosDriveNo, wchar_t *szFileName, int pim) bPrebootPasswordDlgMode = mountOptions.PartitionInInactiveSysEncScope; - if (nDosDriveNo == 0) + if (nDosDriveNo == -1) nDosDriveNo = HIWORD (GetSelectedLong (GetDlgItem (MainDlg, IDC_DRIVELIST))) - L'A'; if (!MultipleMountOperationInProgress) @@ -4625,7 +4625,7 @@ void __cdecl mountThreadFunction (void *hwndDlgArg) EnableWindow(hwndDlg, FALSE); finally_do_arg2 (HWND, hwndDlg, BOOL, bIsForeground, { EnableWindow(finally_arg, TRUE); if (finally_arg2) BringToForeground (finally_arg); bPrebootPasswordDlgMode = FALSE;}); - Mount (hwndDlg, 0, 0, -1); + Mount (hwndDlg, -1, 0, -1); } typedef struct -- cgit v1.2.3