advapi32: implement LsaLookupSids
Alexandre Julliard
julliard at winehq.org
Thu Sep 24 08:20:18 CDT 2009
Aric Stewart <aric at codeweavers.com> writes:
> + {
> + name_size = domain_size = 0;
> + (*Names)[i].Use = SidTypeUnknown;
> + (*Names)[i].DomainIndex = -1;
> + (*Names)[i].Name.Length = 0;
> + (*Names)[i].Name.MaximumLength = 0;
> + (*Names)[i].Name.Buffer = NULL;
> + LookupAccountSidW(NULL, Sids[i], NULL, &name_size, NULL, &domain_size, &use);
> + if (GetLastError() != ERROR_NONE_MAPPED)
> + {
You need to check the function return for failure first, though what you
probably want is to check that it succeeded.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list