VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Mount
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2017-07-08 23:59:22 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-07-09 00:19:17 +0200
commit1ebb0bf00fd764cdf9541e5e3af115e394e09132 (patch)
tree1f98254d64a5757c15ce34465f46c96d5c353aa2 /src/Mount
parent37a070cdeac37a96e0bd156a7cd77a5ab65f8fd0 (diff)
downloadVeraCrypt-1ebb0bf00fd764cdf9541e5e3af115e394e09132.tar.gz
VeraCrypt-1ebb0bf00fd764cdf9541e5e3af115e394e09132.zip
Windows: correctly initialize global critical sections in case if system favorites service.
Diffstat (limited to 'src/Mount')
-rw-r--r--src/Mount/Mount.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c
index d3886726..1d046249 100644
--- a/src/Mount/Mount.c
+++ b/src/Mount/Mount.c
@@ -9144,6 +9144,8 @@ static VOID WINAPI SystemFavoritesServiceMain (DWORD argc, LPTSTR *argv)
if (!SystemFavoritesServiceStatusHandle)
return;
+ InitGlobalLocks ();
+
SystemFavoritesServiceSetStatus (SERVICE_START_PENDING, 120000);
SystemFavoritesServiceLogInfo (wstring (L"Initializing list of host devices"));
@@ -9167,6 +9169,8 @@ static VOID WINAPI SystemFavoritesServiceMain (DWORD argc, LPTSTR *argv)
SystemFavoritesServiceLogError (wstring (L"System Favorites mounting process failed."));
}
+ FinalizeGlobalLocks ();
+
SystemFavoritesServiceSetStatus (SERVICE_RUNNING);
SystemFavoritesServiceSetStatus (SERVICE_STOPPED);
}