advapi32/tests: Remove bad key set on cleanup.

This commit is contained in:
André Hentschel 2013-04-02 00:09:29 +02:00 committed by Alexandre Julliard
parent 7c0c050aa1
commit 9374c5bb56

View File

@ -146,6 +146,13 @@ static void clean_up_environment(void)
pCryptReleaseContext(hProv, 0);
pCryptAcquireContextA(&hProv, szKeySet, NULL, PROV_RSA_FULL, CRYPT_DELETEKEYSET);
}
/* Remove container "wine_test_bad_keyset" */
if (pCryptAcquireContextA(&hProv, szBadKeySet, szRsaBaseProv, PROV_RSA_FULL, 0))
{
pCryptReleaseContext(hProv, 0);
pCryptAcquireContextA(&hProv, szBadKeySet, szRsaBaseProv, PROV_RSA_FULL, CRYPT_DELETEKEYSET);
}
}
static void test_acquire_context(void)