Author: cwittich
Date: Tue Jun 23 02:54:03 2009
New Revision: 41568
URL:
http://svn.reactos.org/svn/reactos?rev=41568&view=rev
Log:
partial advapi32 sid sync to wine 1.1.24
Modified:
trunk/reactos/dll/win32/advapi32/sec/sid.c
Modified: trunk/reactos/dll/win32/advapi32/sec/sid.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/sec/sid…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/sec/sid.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/sec/sid.c [iso-8859-1] Tue Jun 23 02:54:03 2009
@@ -506,7 +506,7 @@
return FALSE;
}
- piace = (ACCESS_ALLOWED_ACE *)pace;
+ piace = pace;
DumpString(&openbr, 1, pwptr, plen);
switch (piace->Header.AceType)
{
@@ -789,7 +789,6 @@
return GetSidLengthRequired(0);
}
-
/******************************************************************************
* ParseStringSidToSid
*/
@@ -899,7 +898,6 @@
TRACE("returning %s\n", bret ? "TRUE" : "FALSE");
return bret;
}
-
/******************************************************************************
* ParseAclStringFlags
@@ -930,7 +928,6 @@
return flags;
}
-
/******************************************************************************
* ParseAceStringType
*/
@@ -1182,7 +1179,7 @@
*/
static BOOL ParseStringSecurityDescriptorToSecurityDescriptor(
LPCWSTR StringSecurityDescriptor,
- SECURITY_DESCRIPTOR* SecurityDescriptor,
+ SECURITY_DESCRIPTOR_RELATIVE* SecurityDescriptor,
LPDWORD cBytes)
{
BOOL bret = FALSE;
@@ -1195,7 +1192,7 @@
*cBytes = sizeof(SECURITY_DESCRIPTOR);
if (SecurityDescriptor)
- lpNext = ((LPBYTE) SecurityDescriptor) + sizeof(SECURITY_DESCRIPTOR);
+ lpNext = (LPBYTE)(SecurityDescriptor + 1);
while (*StringSecurityDescriptor)
{
@@ -1233,7 +1230,7 @@
if (SecurityDescriptor)
{
- SecurityDescriptor->Owner = (PSID)(lpNext -
(LPBYTE)SecurityDescriptor);
+ SecurityDescriptor->Owner = lpNext - (LPBYTE)SecurityDescriptor;
lpNext += bytes; /* Advance to next token */
}
@@ -1251,7 +1248,7 @@
if (SecurityDescriptor)
{
- SecurityDescriptor->Group = (PSID)(lpNext -
(LPBYTE)SecurityDescriptor);
+ SecurityDescriptor->Group = lpNext - (LPBYTE)SecurityDescriptor;
lpNext += bytes; /* Advance to next token */
}
@@ -1271,7 +1268,7 @@
if (SecurityDescriptor)
{
SecurityDescriptor->Control |= SE_DACL_PRESENT | flags;
- SecurityDescriptor->Dacl = (PACL)(lpNext -
(LPBYTE)SecurityDescriptor);
+ SecurityDescriptor->Dacl = lpNext - (LPBYTE)SecurityDescriptor;
lpNext += bytes; /* Advance to next token */
}
@@ -1291,7 +1288,7 @@
if (SecurityDescriptor)
{
SecurityDescriptor->Control |= SE_SACL_PRESENT | flags;
- SecurityDescriptor->Sacl = (PACL)(lpNext -
(LPBYTE)SecurityDescriptor);
+ SecurityDescriptor->Sacl = lpNext - (LPBYTE)SecurityDescriptor;
lpNext += bytes; /* Advance to next token */
}
@@ -1360,7 +1357,7 @@
psd->Control |= SE_SELF_RELATIVE;
if (!ParseStringSecurityDescriptorToSecurityDescriptor(StringSecurityDescriptor,
- psd, &cBytes))
+ (SECURITY_DESCRIPTOR_RELATIVE *)psd, &cBytes))
{
LocalFree(psd);
goto lend;