mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
No need for KEY_WOW64_32KEY registry flag
Registry entries are also 64bit.
This commit is contained in:
parent
258934f884
commit
dcf8c7bcdb
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user