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:
Rob Shearman 2007-03-16 01:39:47 +00:00 committed by Alexandre Julliard
parent 9dc55ab01d
commit c2b05d32f0
1 changed files with 4 additions and 2 deletions

View File

@ -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);