diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2017-07-07 00:34:16 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2017-07-07 00:41:08 +0200 |
commit | 1c3156a17bc60f8f26c91909dec55254d40a0d00 (patch) | |
tree | f9f366cf51e45122951260d4705638bbfb0a2fa4 /src/Mount/Mount.c | |
parent | 048e161d1503ecc98ee3db8c112c87e8c4fb8246 (diff) | |
download | VeraCrypt-1c3156a17bc60f8f26c91909dec55254d40a0d00.tar.gz VeraCrypt-1c3156a17bc60f8f26c91909dec55254d40a0d00.zip |
Windows: fix regression affecting automatic mount of favorites and system favorites at logon
Diffstat (limited to 'src/Mount/Mount.c')
-rw-r--r-- | src/Mount/Mount.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c index 6a4a57a7..76fa0e3c 100644 --- a/src/Mount/Mount.c +++ b/src/Mount/Mount.c @@ -494,6 +494,9 @@ static void InitMainDialog (HWND hwndDlg) e.Show (NULL); } + // initialize the list of devices available for mounting as early as possible + UpdateMountableHostDeviceList (); + // Resize the logo bitmap if the user has a non-default DPI if (ScreenDPI != USER_DEFAULT_SCREEN_DPI && hbmLogoBitmapRescaled == NULL) // If not re-called (e.g. after language pack change) @@ -9143,6 +9146,10 @@ static VOID WINAPI SystemFavoritesServiceMain (DWORD argc, LPTSTR *argv) SystemFavoritesServiceSetStatus (SERVICE_START_PENDING, 120000); + SystemFavoritesServiceLogInfo (wstring (L"Initializing list of host devices")); + // initialize the list of devices available for mounting as early as possible + UpdateMountableHostDeviceList (); + SystemFavoritesServiceLogInfo (wstring (L"Starting System Favorites mounting process")); try @@ -9211,7 +9218,7 @@ int WINAPI wWinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, wchar_t *lpsz VirtualLock (&CmdVolumePassword, sizeof (CmdVolumePassword)); VirtualLock (&mountOptions, sizeof (mountOptions)); VirtualLock (&defaultMountOptions, sizeof (defaultMountOptions)); - VirtualLock (&szFileName, sizeof(szFileName)); + VirtualLock (&szFileName, sizeof(szFileName)); DetectX86Features (); |