Re: advapi32: implement LsaLookupSids
24 Sep
2009
24 Sep
'09
1:20 p.m.
Aric Stewart <aric(a)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(a)winehq.org
5924
Age (days ago)
5924
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard