advapi32: Fix test_LookupAccountSid to work on win9x.

This commit is contained in:
Robert Reif 2006-08-17 15:24:21 -04:00 committed by Alexandre Julliard
parent 572691e685
commit e8e501f44b

View File

@ -892,7 +892,12 @@ static void test_LookupAccountSid(void)
ret = AllocateAndInitializeSid(&SIDAuthNT, 2, SECURITY_BUILTIN_DOMAIN_RID,
DOMAIN_ALIAS_RID_USERS, 0, 0, 0, 0, 0, 0, &pUsersSid);
ok(ret, "AllocateAndInitializeSid failed with error %ld\n", GetLastError());
ok(ret || (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED),
"AllocateAndInitializeSid failed with error %ld\n", GetLastError());
/* not running on NT so give up */
if (!ret && (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED))
return;
/* try NULL account */
acc_size = MAX_PATH;