advapi32: The lpcbSecurityDescriptor parameter to RegGetKeySecurity isn't optional, so don't complicate the code by treating as though it is.
This commit is contained in:
parent
cc0a458f92
commit
7579145ae1
|
@ -2238,7 +2238,7 @@ LSTATUS WINAPI RegGetKeySecurity( HKEY hkey, SECURITY_INFORMATION SecurityInform
|
||||||
LPDWORD lpcbSecurityDescriptor )
|
LPDWORD lpcbSecurityDescriptor )
|
||||||
{
|
{
|
||||||
TRACE("(%p,%d,%p,%d)\n",hkey,SecurityInformation,pSecurityDescriptor,
|
TRACE("(%p,%d,%p,%d)\n",hkey,SecurityInformation,pSecurityDescriptor,
|
||||||
lpcbSecurityDescriptor?*lpcbSecurityDescriptor:0);
|
*lpcbSecurityDescriptor);
|
||||||
|
|
||||||
if (!(hkey = get_special_root_hkey( hkey ))) return ERROR_INVALID_HANDLE;
|
if (!(hkey = get_special_root_hkey( hkey ))) return ERROR_INVALID_HANDLE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue