diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c index 51d76e0a09..9cf2af6d97 100644 --- a/dlls/advapi32/tests/security.c +++ b/dlls/advapi32/tests/security.c @@ -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;