ntoskrnl.exe/tests: Don't call CertFreeCertificateContext on cleanup.
It seems to crash the test on w864. Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
43e67ebddc
commit
2191c0f4b5
|
@ -235,15 +235,11 @@ static void testsign_cleanup(struct testsign_context *ctx)
|
|||
|
||||
ret = CertDeleteCertificateFromStore(ctx->root_cert);
|
||||
ok(ret, "Failed to remove certificate, error %u\n", GetLastError());
|
||||
ret = CertFreeCertificateContext(ctx->root_cert);
|
||||
ok(ret, "Failed to free certificate, error %u\n", GetLastError());
|
||||
ret = CertCloseStore(ctx->root_store, CERT_CLOSE_STORE_CHECK_FLAG);
|
||||
ok(ret, "Failed to close store, error %u\n", GetLastError());
|
||||
|
||||
ret = CertDeleteCertificateFromStore(ctx->publisher_cert);
|
||||
ok(ret, "Failed to remove certificate, error %u\n", GetLastError());
|
||||
ret = CertFreeCertificateContext(ctx->publisher_cert);
|
||||
ok(ret, "Failed to free certificate, error %u\n", GetLastError());
|
||||
ret = CertCloseStore(ctx->publisher_store, CERT_CLOSE_STORE_CHECK_FLAG);
|
||||
ok(ret, "Failed to close store, error %u\n", GetLastError());
|
||||
|
||||
|
|
Loading…
Reference in New Issue