Fix incorrect sizeof in RtlCreateSecurityDescriptor().

This commit is contained in:
Gerald Pfeifer 2004-08-16 19:59:09 +00:00 committed by Alexandre Julliard
parent d73c03a8b0
commit dd809a736b

View File

@ -362,7 +362,7 @@ NTSTATUS WINAPI RtlCreateSecurityDescriptor(
{
if (rev!=SECURITY_DESCRIPTOR_REVISION)
return STATUS_UNKNOWN_REVISION;
memset(lpsd,'\0',sizeof(*lpsd));
memset(lpsd,'\0',sizeof(SECURITY_DESCRIPTOR));
((SECURITY_DESCRIPTOR*)lpsd)->Revision = SECURITY_DESCRIPTOR_REVISION;
return STATUS_SUCCESS;
}