[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Re: [PATCH 2/5] aclui: Populate the users list.
From: "Zebediah Figura (she/her)" <zfigura () codeweavers ! com>
Date: 2021-02-28 16:26:05
Message-ID: 3ee78f2c-69e5-e01d-b07a-16949f8a0e7e () codeweavers ! com
[Download RAW message or body]
[Attachment #2 (multipart/mixed)]
On 2/28/21 2:31 AM, Dmitry Timoshkov wrote:
> Zebediah Figura <z.figura12@gmail.com> wrote:
>
>> +static PSID get_sid_from_ace(ACE_HEADER *ace)
>> +{
>> + switch (ace->AceType)
>> + {
>> + case ACCESS_ALLOWED_ACE_TYPE:
>> + return (SID *)&((ACCESS_ALLOWED_ACE *)ace)->SidStart;
>> + case ACCESS_DENIED_ACE_TYPE:
>> + return (SID *)&((ACCESS_DENIED_ACE *)ace)->SidStart;
>> + default:
>> + FIXME("Unhandled ACE type %#x.\n", ace->AceType);
>> + return NULL;
>> + }
>> +}
>
> I guess the cast (SID *) should be replaced by (PSID) since they are
> different types, and the compiler doesn't complain here because PSID
> is typedef'ed to PVOID.
>
Yeah, I think you're right; the casts are redundant and should probably
be removed.
["OpenPGP_signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic