mirror of
https://github.com/dlang/phobos.git
synced 2025-05-04 09:00:22 +03:00
Issue 5888 fix - createKey and getKey in registry.d always use KEY_ALL_ACCESS
This commit is contained in:
parent
993352d93a
commit
cc1b5e9abb
1 changed files with 2 additions and 2 deletions
|
@ -1084,7 +1084,7 @@ public:
|
||||||
HKEY hkey;
|
HKEY hkey;
|
||||||
DWORD disposition;
|
DWORD disposition;
|
||||||
LONG lRes = Reg_CreateKeyExA_( m_hkey, name, 0
|
LONG lRes = Reg_CreateKeyExA_( m_hkey, name, 0
|
||||||
, REGSAM.KEY_ALL_ACCESS
|
, access
|
||||||
, null, hkey, disposition);
|
, null, hkey, disposition);
|
||||||
|
|
||||||
if(ERROR_SUCCESS != lRes)
|
if(ERROR_SUCCESS != lRes)
|
||||||
|
@ -1144,7 +1144,7 @@ public:
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
HKEY hkey;
|
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)
|
if(ERROR_SUCCESS != lRes)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue