advapi32: fix test_LookupAccountSid to work on win9x

Robert Reif reif at earthlink.net
Thu Aug 17 14:24:21 CDT 2006


-------------- next part --------------
diff -p -u -r1.38 security.c
--- dlls/advapi32/tests/security.c	14 Aug 2006 19:11:14 -0000	1.38
+++ dlls/advapi32/tests/security.c	17 Aug 2006 14:44:19 -0000
@@ -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;


More information about the wine-patches mailing list