Remove 'cast from pointer to integer of different size' warnings in

64bit,
This commit is contained in:
Kevin Koltzau 2005-08-22 09:18:48 +00:00 committed by Alexandre Julliard
parent 005729588d
commit 73159c1d0c
1 changed files with 4 additions and 8 deletions

View File

@ -2663,8 +2663,7 @@ static BOOL ParseStringSecurityDescriptorToSecurityDescriptor(
if (SecurityDescriptor)
{
SecurityDescriptor->Owner = (PSID) ((DWORD) lpNext -
(DWORD) SecurityDescriptor);
SecurityDescriptor->Owner = (PSID)(lpNext - (LPBYTE)SecurityDescriptor);
lpNext += bytes; /* Advance to next token */
}
@ -2682,8 +2681,7 @@ static BOOL ParseStringSecurityDescriptorToSecurityDescriptor(
if (SecurityDescriptor)
{
SecurityDescriptor->Group = (PSID) ((DWORD) lpNext -
(DWORD) SecurityDescriptor);
SecurityDescriptor->Group = (PSID)(lpNext - (LPBYTE)SecurityDescriptor);
lpNext += bytes; /* Advance to next token */
}
@ -2703,8 +2701,7 @@ static BOOL ParseStringSecurityDescriptorToSecurityDescriptor(
if (SecurityDescriptor)
{
SecurityDescriptor->Control |= SE_DACL_PRESENT | flags;
SecurityDescriptor->Dacl = (PACL) ((DWORD) lpNext -
(DWORD) SecurityDescriptor);
SecurityDescriptor->Dacl = (PACL)(lpNext - (LPBYTE)SecurityDescriptor);
lpNext += bytes; /* Advance to next token */
}
@ -2724,8 +2721,7 @@ static BOOL ParseStringSecurityDescriptorToSecurityDescriptor(
if (SecurityDescriptor)
{
SecurityDescriptor->Control |= SE_SACL_PRESENT | flags;
SecurityDescriptor->Sacl = (PACL) ((DWORD) lpNext -
(DWORD) SecurityDescriptor);
SecurityDescriptor->Sacl = (PACL)(lpNext - (LPBYTE)SecurityDescriptor);
lpNext += bytes; /* Advance to next token */
}