Commit c2b05d32 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

advapi32: Fix a failing test on Windows caused by the existence of one SID that…

advapi32: Fix a failing test on Windows caused by the existence of one SID that always has no associated account.
parent 9dc55ab0
......@@ -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());
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment