Make sure the security descriptor is initialized in RegGetKeySecurity.

oldstable
Dmitry Timoshkov 2002-04-02 02:41:27 +00:00 committed by Alexandre Julliard
parent a57149e155
commit 79313d371a
1 changed files with 3 additions and 0 deletions

View File

@ -1517,6 +1517,9 @@ LONG WINAPI RegGetKeySecurity( HKEY hkey, SECURITY_INFORMATION SecurityInformati
FIXME("(%x,%ld,%p,%ld): stub\n",hkey,SecurityInformation,
pSecurityDescriptor,lpcbSecurityDescriptor?*lpcbSecurityDescriptor:0);
/* Do not leave security descriptor filled with garbage */
RtlCreateSecurityDescriptor(pSecurityDescriptor, SECURITY_DESCRIPTOR_REVISION);
return ERROR_SUCCESS;
}