From dd809a736bd4a477209080412d3f61ebc46418ce Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Mon, 16 Aug 2004 19:59:09 +0000 Subject: [PATCH] Fix incorrect sizeof in RtlCreateSecurityDescriptor(). --- dlls/ntdll/sec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntdll/sec.c b/dlls/ntdll/sec.c index c682ccad6c..f5fa23fb10 100644 --- a/dlls/ntdll/sec.c +++ b/dlls/ntdll/sec.c @@ -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; }