diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-05-22 18:19:13 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-05-22 22:58:51 +0200 |
commit | 0d23312886b7787eb4b7de2d788b7de4d021e139 (patch) | |
tree | e152b581c57a87455cfca0f5bdd591d6771117d8 /src/Common/Registry.c | |
parent | c44c1ac9ce7148c2830191e373ad41a2feeff046 (diff) | |
download | VeraCrypt-0d23312886b7787eb4b7de2d788b7de4d021e139.tar.gz VeraCrypt-0d23312886b7787eb4b7de2d788b7de4d021e139.zip |
Windows: Modifications to build 64-bit versions of VeraCrypt.exe & "VeraCrypt Format.exe".
Diffstat (limited to 'src/Common/Registry.c')
-rw-r--r-- | src/Common/Registry.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Common/Registry.c b/src/Common/Registry.c index 0b17dc51..07ca6b10 100644 --- a/src/Common/Registry.c +++ b/src/Common/Registry.c @@ -65,12 +65,12 @@ BOOL ReadLocalMachineRegistryString (const char *subKey, char *name, char *str, return type == REG_SZ;
}
-BOOL ReadLocalMachineRegistryStringNonReflected (const char *subKey, char *name, char *str, DWORD *size)
+BOOL ReadLocalMachineRegistryStringNonReflected (const char *subKey, char *name, char *str, DWORD *size, BOOL b32bitApp)
{
HKEY hkey = 0;
DWORD type;
- if (RegOpenKeyEx (HKEY_LOCAL_MACHINE, subKey, 0, KEY_READ | KEY_WOW64_64KEY, &hkey) != ERROR_SUCCESS)
+ if (RegOpenKeyEx (HKEY_LOCAL_MACHINE, subKey, 0, KEY_READ | (b32bitApp? KEY_WOW64_32KEY: KEY_WOW64_64KEY), &hkey) != ERROR_SUCCESS)
return FALSE;
if (RegQueryValueEx (hkey, name, NULL, &type, (BYTE *) str, size) != ERROR_SUCCESS)
|