From ebbbde89647ae0a7cce430ef880822805ebc2e12 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Tue, 27 Oct 2015 15:23:22 +0100 Subject: Windows: workaround to solve false positive detection by some anti-virus software. --- src/Setup/Setup.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Setup/Setup.c') diff --git a/src/Setup/Setup.c b/src/Setup/Setup.c index 7c3caa1c..1b2042b0 100644 --- a/src/Setup/Setup.c +++ b/src/Setup/Setup.c @@ -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)) { -- cgit v1.2.3