Windows: call VcProtectKeys in benchmark warm-up when RAM encryption is enabled in order to be follow the same execution path as the result of benchmark calculations.

This commit is contained in:
Mounir IDRASSI 2020-06-20 15:02:09 +02:00
parent 4f1de9666a
commit d031addc2c
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F

View File

@ -5787,6 +5787,10 @@ static BOOL PerformBenchmark(HWND hBenchDlg, HWND hwndDlg)
if (EAInitMode (ci, ci->k2))
{
int i;
#ifdef _WIN64
if (IsRamEncryptionEnabled ())
VcProtectKeys (ci, VcGetEncryptionID (ci));
#endif
for (i = 0; i < 10; i++)
{