advapi32: Add the size of the security descriptor structure to the size of memory required in ParseStringSecurityDescriptorToSecurityDescriptor.

This commit is contained in:
Rob Shearman 2007-07-18 18:09:16 +01:00 committed by Alexandre Julliard
parent 60d847b074
commit 4d5ce383f5
1 changed files with 1 additions and 1 deletions

View File

@ -3266,7 +3266,7 @@ static BOOL ParseStringSecurityDescriptorToSecurityDescriptor(
LPBYTE lpNext = NULL;
DWORD len;
*cBytes = 0;
*cBytes = sizeof(SECURITY_DESCRIPTOR);
if (SecurityDescriptor)
lpNext = ((LPBYTE) SecurityDescriptor) + sizeof(SECURITY_DESCRIPTOR);