parent
b6c002f32d
commit
5059d8a46c
|
@ -58,10 +58,10 @@ REGSAM _get_bitness_sam() {
|
|||
}
|
||||
|
||||
LONG _RegOpenKey(HKEY hKey, LPCWSTR lpSubKey, PHKEY phkResult) {
|
||||
LONG res = RegOpenKeyExW(hKey, lpSubKey, 0, Key::READ, phkResult);
|
||||
LONG res = RegOpenKeyExW(hKey, lpSubKey, 0, KEY_READ, phkResult);
|
||||
|
||||
if (res != ERROR_SUCCESS)
|
||||
res = RegOpenKeyExW(hKey, lpSubKey, 0, Key::READ | _get_bitness_sam(), phkResult);
|
||||
res = RegOpenKeyExW(hKey, lpSubKey, 0, KEY_READ | _get_bitness_sam(), phkResult);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue