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:
Rob Shearman 2008-02-14 14:38:30 +00:00 committed by Alexandre Julliard
parent cc0a458f92
commit 7579145ae1
1 changed files with 1 additions and 1 deletions

View File

@ -2238,7 +2238,7 @@ LSTATUS WINAPI RegGetKeySecurity( HKEY hkey, SECURITY_INFORMATION SecurityInform
LPDWORD lpcbSecurityDescriptor )
{
TRACE("(%p,%d,%p,%d)\n",hkey,SecurityInformation,pSecurityDescriptor,
lpcbSecurityDescriptor?*lpcbSecurityDescriptor:0);
*lpcbSecurityDescriptor);
if (!(hkey = get_special_root_hkey( hkey ))) return ERROR_INVALID_HANDLE;