From cc1b5e9abbc1760da3fa4f00d22e478849835c54 Mon Sep 17 00:00:00 2001 From: denis-sh Date: Wed, 4 May 2011 23:42:07 -0700 Subject: [PATCH] Issue 5888 fix - createKey and getKey in registry.d always use KEY_ALL_ACCESS --- std/windows/registry.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/std/windows/registry.d b/std/windows/registry.d index 66f8aee2f..ddcf3cf6b 100644 --- a/std/windows/registry.d +++ b/std/windows/registry.d @@ -1084,7 +1084,7 @@ public: HKEY hkey; DWORD disposition; LONG lRes = Reg_CreateKeyExA_( m_hkey, name, 0 - , REGSAM.KEY_ALL_ACCESS + , access , null, hkey, disposition); if(ERROR_SUCCESS != lRes) @@ -1144,7 +1144,7 @@ public: else { HKEY hkey; - LONG lRes = Reg_OpenKeyExA_(m_hkey, name, REGSAM.KEY_ALL_ACCESS, hkey); + LONG lRes = Reg_OpenKeyExA_(m_hkey, name, access, hkey); if(ERROR_SUCCESS != lRes) {