[PATCH 2/4] advapi32/tests: Merge some test code

Nikolay Sivov <[email protected]>
Newsgroups gmane.comp.emulators.wine.patches
Message-ID <[email protected]>
Signed-off-by: Nikolay Sivov <[email protected]>
---
 dlls/advapi32/tests/lsa.c | 22 +---------------------
 1 file changed, 1 insertion(+), 21 deletions(-)

diff --git a/dlls/advapi32/tests/lsa.c b/dlls/advapi32/tests/lsa.c
index 81bcf21069..a06c8afca1 100644
--- a/dlls/advapi32/tests/lsa.c
+++ b/dlls/advapi32/tests/lsa.c
@@ -328,6 +328,7 @@ static void test_LsaLookupSids(void)
     HANDLE token;
     DWORD size;
     BOOL ret;
+    PSID sid;
 
     memset(&attrs, 0, sizeof(attrs));
     attrs.Length = sizeof(attrs);
@@ -364,26 +365,6 @@ static void test_LsaLookupSids(void)
 
     CloseHandle(token);
 
-    status = LsaClose(policy);
-    ok(status == STATUS_SUCCESS, "got 0x%08x\n", status);
-}
-
-static void test_LsaLookupSids_NullBuffers(void)
-{
-    LSA_REFERENCED_DOMAIN_LIST *list;
-    LSA_OBJECT_ATTRIBUTES attrs;
-    LSA_TRANSLATED_NAME *names;
-    LSA_HANDLE policy;
-    NTSTATUS status;
-    BOOL ret;
-    PSID sid;
-
-    memset(&attrs, 0, sizeof(attrs));
-    attrs.Length = sizeof(attrs);
-
-    status = LsaOpenPolicy(NULL, &attrs, POLICY_LOOKUP_NAMES, &policy);
-    ok(status == STATUS_SUCCESS, "got 0x%08x\n", status);
-
     ret = ConvertStringSidToSidA("S-1-1-0", &sid);
     ok(ret == TRUE, "ConvertStringSidToSidA returned false\n");
 
@@ -415,5 +396,4 @@ START_TEST(lsa)
     test_lsa();
     test_LsaLookupNames2();
     test_LsaLookupSids();
-    test_LsaLookupSids_NullBuffers();
 }
-- 
2.14.2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.