From d031addc2cfe93c40b4b7a7a20be31a86c39033f Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 20 Jun 2020 15:02:09 +0200 Subject: 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. --- src/Common/Dlgcode.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Common/Dlgcode.c') diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c index be4ee043..737e02ef 100644 --- a/src/Common/Dlgcode.c +++ b/src/Common/Dlgcode.c @@ -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++) { -- cgit v1.2.3