Rob Shearman : advapi32: Fix a failing test on Windows caused by the existence of one SID that always has no associated account .
Module: wine Branch: master Commit: c2b05d32f09b57cbfa6b3eeb2c4f6af67e3812fe URL: http://source.winehq.org/git/wine.git/?a=commit;h=c2b05d32f09b57cbfa6b3eeb2c... Author: Rob Shearman <rob(a)codeweavers.com> Date: Fri Mar 16 01:39:47 2007 +0000 advapi32: Fix a failing test on Windows caused by the existence of one SID that always has no associated account. --- dlls/advapi32/tests/security.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c index 3e8459e..4de2476 100644 --- a/dlls/advapi32/tests/security.c +++ b/dlls/advapi32/tests/security.c @@ -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);
participants (1)
-
Alexandre Julliard