mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-10-11 10:59:56 -05:00
Windows: workaround to solve false positive detection by some anti-virus software.
This commit is contained in:
1 parent
62de77e2c8
commit
ebbbde8964
3 files changed
+12
-2
No files matched your search
+3
-1
@@ -495,7 +495,9 @@ BOOL IsSystemRestoreEnabled ()
|
||||
BOOL bEnabled = FALSE;
|
||||
HKEY hKey;
|
||||
DWORD dwValue = 0, cbValue = sizeof (DWORD);
|
||||
if (RegOpenKeyEx (HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SystemRestore", 0, KEY_READ | KEY_WOW64_64KEY, &hKey) == ERROR_SUCCESS)
|
||||
char szRegPath[MAX_PATH];
|
||||
GetRestorePointRegKeyName (szRegPath, sizeof (szRegPath));
|
||||
if (RegOpenKeyEx (HKEY_LOCAL_MACHINE, szRegPath, 0, KEY_READ | KEY_WOW64_64KEY, &hKey) == ERROR_SUCCESS)
|
||||
{
|
||||
if (IsOSAtLeast (WIN_VISTA))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user