[PATCH 2/5] aclui: Populate the users list.
Dmitry Timoshkov
dmitry at baikal.ru
Sun Feb 28 02:31:52 CST 2021
Zebediah Figura <z.figura12 at 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.
--
Dmitry.
More information about the wine-devel
mailing list