advapi32: Fix a failing test on Windows caused by the existence of one SID that always has no associated account.
This commit is contained in:
parent
9dc55ab01d
commit
c2b05d32f0
|
@ -896,8 +896,10 @@ static void test_token_attr(void)
|
|||
Name[0] = '\0';
|
||||
Domain[0] = '\0';
|
||||
ret = LookupAccountSid(NULL, Groups->Groups[i].Sid, Name, &NameLength, Domain, &DomainLength, &SidNameUse);
|
||||
ok(ret, "LookupAccountSid(%s) failed with error %d\n", SidString, GetLastError());
|
||||
trace("\t%s, %s\\%s use: %d attr: 0x%08x\n", SidString, Domain, Name, SidNameUse, Groups->Groups[i].Attributes);
|
||||
if (ret)
|
||||
trace("\t%s, %s\\%s use: %d attr: 0x%08x\n", SidString, Domain, Name, SidNameUse, Groups->Groups[i].Attributes);
|
||||
else
|
||||
trace("\t%s, attr: 0x%08x LookupAccountSid failed with error %d\n", SidString, Groups->Groups[i].Attributes, GetLastError());
|
||||
LocalFree(SidString);
|
||||
}
|
||||
HeapFree(GetProcessHeap(), 0, Groups);
|
||||
|
|
Loading…
Reference in New Issue