crypt32: Move test for duplicating a NULL cert to existing function.

This commit is contained in:
Juan Lang 2009-01-29 11:20:46 -08:00 committed by Alexandre Julliard
parent 13ff441aea
commit 44e7d7b682
1 changed files with 4 additions and 11 deletions

View File

@ -662,6 +662,10 @@ static void testDupCert(void)
CertFreeCertificateContext(context);
}
CertCloseStore(store, 0);
SetLastError(0xdeadbeef);
context = CertDuplicateCertificateContext(NULL);
ok(context == NULL, "Expected context to be NULL\n");
}
static BYTE subjectName3[] = { 0x30, 0x15, 0x31, 0x13, 0x30, 0x11, 0x06,
@ -3136,16 +3140,6 @@ static void testGetPublicKeyLength(void)
ok(ret == 56, "Expected length 56, got %d\n", ret);
}
static void testCertDuplicateCertificateContext(void)
{
PCCERT_CONTEXT context;
SetLastError(0xdeadbeef);
context = CertDuplicateCertificateContext(NULL);
ok(context == NULL, "Expected context to be NULL\n");
}
START_TEST(cert)
{
init_function_pointers();
@ -3173,5 +3167,4 @@ START_TEST(cert)
testVerifyRevocation();
testAcquireCertPrivateKey();
testGetPublicKeyLength();
testCertDuplicateCertificateContext();
}