summaryrefslogtreecommitdiff
path: root/modules/mono/utils
diff options
context:
space:
mode:
authorStefan Boronczyk <stefan.amin.boronczyk@googlemail.com>2021-11-14 22:52:08 +0100
committerRĂ©mi Verschelde <rverschelde@gmail.com>2021-11-15 08:49:37 +0100
commit5059d8a46cc34dd6c43fe6461f6b435af1b4f5e1 (patch)
tree75a1b09947646dd18f7d718f422ccd4246cd00ec /modules/mono/utils
parentb6c002f32d3ee01f227dbaaf15caf5ce378f2fb6 (diff)
Fix mono build after invalid rename of `KEY_READ`
Follow-up to #51684.
Diffstat (limited to 'modules/mono/utils')
-rw-r--r--modules/mono/utils/mono_reg_utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mono/utils/mono_reg_utils.cpp b/modules/mono/utils/mono_reg_utils.cpp
index c80a80c7bd..d0a27b27c1 100644
--- a/modules/mono/utils/mono_reg_utils.cpp
+++ b/modules/mono/utils/mono_reg_utils.cpp
@@ -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;
}