Commit dd809a73 authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

Fix incorrect sizeof in RtlCreateSecurityDescriptor().

parent d73c03a8
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment