Rob Shearman : advapi32: Runtime link to CreateWellKnownSid in the tests for the function, since it isn't available on all platforms.

Alexandre Julliard julliard at winehq.org
Tue Oct 23 13:14:37 CDT 2007


Module: wine
Branch: master
Commit: 8bfb77b95844b4d4df5c72c377ebacbc5184d461
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8bfb77b95844b4d4df5c72c377ebacbc5184d461

Author: Rob Shearman <rob at codeweavers.com>
Date:   Tue Oct 23 13:38:27 2007 +0100

advapi32: Runtime link to CreateWellKnownSid in the tests for the function, since it isn't available on all platforms.

---

 dlls/advapi32/tests/security.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c
index 9cf409e..7f5728e 100644
--- a/dlls/advapi32/tests/security.c
+++ b/dlls/advapi32/tests/security.c
@@ -1143,7 +1143,7 @@ static void test_CreateWellKnownSid()
         }
 
         cb = sizeof(sid_buffer);
-        ok(CreateWellKnownSid(i, value->without_domain ? NULL : domainsid, sid_buffer, &cb), "Couldn't create well known sid %d\n", i);
+        ok(pCreateWellKnownSid(i, value->without_domain ? NULL : domainsid, sid_buffer, &cb), "Couldn't create well known sid %d\n", i);
         expect_eq(GetSidLengthRequired(*GetSidSubAuthorityCount(sid_buffer)), cb, DWORD, "%d");
         ok(IsValidSid(sid_buffer), "The sid is not valid\n");
         ok(ConvertSidToStringSid(sid_buffer, &str), "Couldn't convert SID to string\n");
@@ -1155,7 +1155,7 @@ static void test_CreateWellKnownSid()
         {
             char buf2[SECURITY_MAX_SID_SIZE];
             cb = sizeof(buf2);
-            ok(CreateWellKnownSid(i, domainsid, buf2, &cb), "Couldn't create well known sid %d with optional domain\n", i);
+            ok(pCreateWellKnownSid(i, domainsid, buf2, &cb), "Couldn't create well known sid %d with optional domain\n", i);
             expect_eq(GetSidLengthRequired(*GetSidSubAuthorityCount(sid_buffer)), cb, DWORD, "%d");
             ok(memcmp(buf2, sid_buffer, cb) == 0, "SID create with domain is different than without (%d)\n", i);
         }




More information about the wine-cvs mailing list