D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 5888 - createKey and getKey in registry.d always use KEY_ALL_ACCESS
Summary: createKey and getKey in registry.d always use KEY_ALL_ACCESS
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: Other Windows
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-25 22:02 UTC by Denis Shelomovskii
Modified: 2015-06-09 05:12 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Denis Shelomovskii 2011-04-25 22:02:20 UTC
createKey and getKey functions should use "access" argument instead of REGSAM.KEY_ALL_ACCESS at lines 1087 and 1147 like this:
-1087: ,   REGSAM.KEY_ALL_ACCESS
+1087: ,   access
-1147: LONG    lRes    =   Reg_OpenKeyExA_(m_hkey, name, REGSAM.KEY_ALL_ACCESS, hkey);
+1147: LONG    lRes    =   Reg_OpenKeyExA_(m_hkey, name, access
, hkey);
Comment 1 Denis Shelomovskii 2011-09-09 11:35:16 UTC
Fixed with other issues in:
https://github.com/D-Programming-Language/phobos/commit/830537e508c6960fc139a42dc3f2024ade9cb564