Windows: fix regression affecting automatic mount of favorites and system favorites at logon

This commit is contained in:
Mounir IDRASSI 2017-07-07 00:34:16 +02:00
parent 048e161d15
commit 1c3156a17b
No known key found for this signature in database
GPG Key ID: DD0C382D5FCFB8FC

View File

@ -494,6 +494,9 @@ static void InitMainDialog (HWND hwndDlg)
e.Show (NULL); 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 // Resize the logo bitmap if the user has a non-default DPI
if (ScreenDPI != USER_DEFAULT_SCREEN_DPI if (ScreenDPI != USER_DEFAULT_SCREEN_DPI
&& hbmLogoBitmapRescaled == NULL) // If not re-called (e.g. after language pack change) && 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); 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")); SystemFavoritesServiceLogInfo (wstring (L"Starting System Favorites mounting process"));
try try