Fixed permissions check in open_registry().
authorIain Patterson <me@iain.cx>
Fri, 2 Jan 2015 11:31:19 +0000 (11:31 +0000)
committerIain Patterson <me@iain.cx>
Fri, 2 Jan 2015 13:45:15 +0000 (13:45 +0000)
We were checking for the presence of KEY_WRITE in the SAM to decide
whether to call RegCreateKeyEx() or RegOpenKeyEx().  KEY_WRITE is an
alias for STANDARD_RIGHTS_WRITE | KEY_SET_VALUE | KEY_CREATE_SUB_KEY so
the function was incorrectly calling RegCreateKeyEx() even when
RegOpenKeyEx() would be more appropriate.


No differences found