advapi32: Add the size of the security descriptor structure to the size of memory required in ParseStringSecurityDescriptorToSecurityDescriptor.
This commit is contained in:
parent
60d847b074
commit
4d5ce383f5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue