Rob Shearman : advapi32:
Add the size of the security descriptor structure to the size of memory
required in ParseStringSecurityDescriptorToSecurityDescriptor .
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Jul 19 07:59:41 CDT 2007
Module: wine
Branch: master
Commit: 4d5ce383f52992d04f75558989675e0f9c452efc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4d5ce383f52992d04f75558989675e0f9c452efc
Author: Rob Shearman <rob at codeweavers.com>
Date: Wed Jul 18 18:09:16 2007 +0100
advapi32: Add the size of the security descriptor structure to the size of memory required in ParseStringSecurityDescriptorToSecurityDescriptor.
---
dlls/advapi32/security.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/advapi32/security.c b/dlls/advapi32/security.c
index 41a3aef..48d795f 100644
--- a/dlls/advapi32/security.c
+++ b/dlls/advapi32/security.c
@@ -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);
More information about the wine-cvs
mailing list