http://bugs.winehq.org/show_bug.cgi?id=32360
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com 2012-12-04 11:19:53 CST --- (In reply to comment #1)
(In reply to comment #0)
... So GetNamedSecurityInfoW() needs to support SE_SERVICE type (patches sent for that already) and SE_REGISTRY_KEY (could be done on top of RegGetKeySecurity() I think). Issue seems to be related to out parameters explicitly zeroed now, while before original patch from bug 32327 they were untouched.
Do you think we should not zero out the parameters to make the failure case better?
No. I think we need tests for GetSecurityInfo() for SE_REGISTRY_KEY case to see if it differs from RegGetKeySecurity() and make it work properly. After that make GetNamedSecurityInfoW handle registry keys (create key from path and use GetSecurityInfo on it).