HRESULT CryptRegisterRes = S_OK;
HRESULT TrustProviderRes = S_OK;
HRESULT SIPAddProviderRes = S_OK;
+ HCRYPTPROV crypt_provider;
+ BOOL ret;
TRACE("\n");
* a trust provider without a diagnostic policy).
*/
+ /* Create a dummy context to force creation of the MachineGuid registry key. */
+ ret = CryptAcquireContextW(&crypt_provider, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT);
+ if (ret) CryptReleaseContext(crypt_provider, 0);
+ else ERR("Failed to acquire cryptographic context: %u\n", GetLastError());
+
/* If CryptRegisterRes is not S_OK it will always overrule the return value. */
if (CryptRegisterRes != S_OK)
return CryptRegisterRes;
reactos/dll/win32/winmm/midimap # Forked at Wine-20050628
reactos/dll/win32/winmm/wavemap # Forked at Wine-20050628
reactos/dll/win32/winscard # Synced to WineStaging-1.7.47
-reactos/dll/win32/wintrust # Synced to WineStaging-1.7.47
+reactos/dll/win32/wintrust # Synced to WineStaging-1.7.55
reactos/dll/win32/wldap32 # Synced to WineStaging-1.7.47
reactos/dll/win32/wmi # Synced to WineStaging-1.7.47
reactos/dll/win32/wmiutils # Synced to WineStaging-1.7.55