summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-11-15 09:57:42 +0100
committerGitHub <noreply@github.com>2021-11-15 09:57:42 +0100
commit78eb50b8903c73cdefb3e7d54ce64793fd25318c (patch)
treed6a0fead75921ee1b3fef96a43720d985f099a68 /modules
parentd975b1bc3787db88dfbe4d02909fbe82e023605d (diff)
parent5059d8a46cc34dd6c43fe6461f6b435af1b4f5e1 (diff)
Merge pull request #54983 from sboron/fix-mono
Diffstat (limited to 'modules')
-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;
}