Rob Shearman : advapi32:
Fix a typo in ParseStringAclToAcl which caused the ACE to be written
inside of the ACL memory .
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Jul 19 07:59:41 CDT 2007
Module: wine
Branch: master
Commit: 60d847b074d27bc7a5bd1d1908d5126d497b80de
URL: http://source.winehq.org/git/wine.git/?a=commit;h=60d847b074d27bc7a5bd1d1908d5126d497b80de
Author: Rob Shearman <rob at codeweavers.com>
Date: Wed Jul 18 18:07:29 2007 +0100
advapi32: Fix a typo in ParseStringAclToAcl which caused the ACE to be written inside of the ACL memory.
---
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 0f067de..41a3aef 100644
--- a/dlls/advapi32/security.c
+++ b/dlls/advapi32/security.c
@@ -3178,7 +3178,7 @@ static BOOL ParseStringAclToAcl(LPCWSTR StringAcl, LPDWORD lpdwFlags,
return FALSE;
if (pAcl) /* pAce is only useful if we're setting values */
- pAce = (PACCESS_ALLOWED_ACE) ((LPBYTE)pAcl + sizeof(PACL));
+ pAce = (PACCESS_ALLOWED_ACE) (pAcl + 1);
/* Parse ACL flags */
*lpdwFlags = ParseAclStringFlags(&StringAcl);
More information about the wine-cvs
mailing list