VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2020-08-03 17:15:00 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2020-08-03 18:14:22 +0200
commitbd78c9d0af5e71db663f0a80a3f2fc8c524dfe07 (patch)
tree13fc7bfe50191b54864262cca97ed6041a002a4d /src/Common
parent9da8fc669bd32baa68bceac542d436c224bbb5bd (diff)
downloadVeraCrypt-bd78c9d0af5e71db663f0a80a3f2fc8c524dfe07.tar.gz
VeraCrypt-bd78c9d0af5e71db663f0a80a3f2fc8c524dfe07.zip
Windows: Fix issue in UI for configuration autofix mechanism of bootloader
Diffstat (limited to 'src/Common')
-rw-r--r--src/Common/Dlgcode.c10
-rw-r--r--src/Common/Dlgcode.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c
index b50d429e..6fcd16c3 100644
--- a/src/Common/Dlgcode.c
+++ b/src/Common/Dlgcode.c
@@ -2645,6 +2645,16 @@ uint32 ReadDriverConfigurationFlags ()
return configMap;
}
+uint32 ReadServiceConfigurationFlags ()
+{
+ DWORD configMap;
+
+ if (!ReadLocalMachineRegistryDword (L"SYSTEM\\CurrentControlSet\\Services\\" TC_SYSTEM_FAVORITES_SERVICE_NAME, TC_SYSTEM_FAVORITES_SERVICE_NAME L"Config", &configMap))
+ configMap = 0;
+
+ return configMap;
+}
+
uint32 ReadEncryptionThreadPoolFreeCpuCountLimit ()
{
diff --git a/src/Common/Dlgcode.h b/src/Common/Dlgcode.h
index 2378aeb8..e4b2198a 100644
--- a/src/Common/Dlgcode.h
+++ b/src/Common/Dlgcode.h
@@ -319,6 +319,7 @@ BOOL InstanceHasAppSetupMutex (void);
void CloseAppSetupMutex (void);
BOOL IsTrueCryptInstallerRunning (void);
uint32 ReadDriverConfigurationFlags ();
+uint32 ReadServiceConfigurationFlags ();
uint32 ReadEncryptionThreadPoolFreeCpuCountLimit ();
BOOL LoadSysEncSettings ();
int LoadNonSysInPlaceEncSettings (WipeAlgorithmId *wipeAlgorithm);