From dcf8c7bcdbb8e98a8a45a026bdc7a254ccf92c68 Mon Sep 17 00:00:00 2001 From: Christian Hohnstaedt Date: Tue, 21 Jan 2020 21:54:11 +0100 Subject: [PATCH] No need for KEY_WOW64_32KEY registry flag Registry entries are also 64bit. --- lib/func.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/func.cpp b/lib/func.cpp index 2a7d2468..eab4a299 100644 --- a/lib/func.cpp +++ b/lib/func.cpp @@ -76,7 +76,7 @@ int portable_app() HKEY hKey; if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Software\\xca", 0, - KEY_WOW64_32KEY|KEY_READ, &hKey) == ERROR_SUCCESS) + KEY_READ, &hKey) == ERROR_SUCCESS) { unsigned char inst_dir[512]; ULONG len = sizeof inst_dir; @@ -135,7 +135,7 @@ const QString getPrefix() p = inst_dir; *p = '\0'; if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Software\\xca", 0, - KEY_WOW64_32KEY|KEY_READ, &hKey) != ERROR_SUCCESS) + KEY_READ, &hKey) != ERROR_SUCCESS) { XCA_WARN("Registry Key: 'HKEY_LOCAL_MACHINE\\Software\\xca' not found"); return QString(inst_dir); @@ -333,7 +333,7 @@ QString hostId() HKEY hKey; if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, REG_CRYPTO, 0, - KEY_WOW64_64KEY|KEY_READ, &hKey) != ERROR_SUCCESS) { + KEY_READ, &hKey) != ERROR_SUCCESS) { XCA_WARN("Registry Key: '" REG_CRYPTO "' not found"); } else { if (RegQueryValueEx(hKey, REG_GUID, NULL, NULL,