From 3d0dced4bdc9d5eca2f7cc88cfa9becfe3a9c769 Mon Sep 17 00:00:00 2001 From: Tahir Akhlaq Date: Wed, 1 Nov 2017 22:18:11 +0000 Subject: [PATCH] change CryptAcquireContextW to try CRYPT_NEWKEYSET flag if key container doesnt exist already < https://msdn.microsoft.com/en-us/library/windows/desktop/aa379886(v=vs.85).aspx > --- rpcs3/Emu/Cell/lv2/sys_ss.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_ss.cpp b/rpcs3/Emu/Cell/lv2/sys_ss.cpp index 7e28158318..8911a250d6 100644 --- a/rpcs3/Emu/Cell/lv2/sys_ss.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_ss.cpp @@ -11,7 +11,7 @@ const HCRYPTPROV s_crypto_provider = []() -> HCRYPTPROV { HCRYPTPROV result; - if (!CryptAcquireContextW(&result, nullptr, nullptr, PROV_RSA_FULL, 0)) + if (!CryptAcquireContextW(&result, nullptr, nullptr, PROV_RSA_FULL, 0) && !CryptAcquireContextW(&result, nullptr, nullptr, PROV_RSA_FULL, CRYPT_NEWKEYSET)) { return 0; }