Windows: rename IsCpuRngSupport to IsCpuRngSupported for clarity and use it in Mount.c

This commit is contained in:
Mounir IDRASSI 2019-02-13 17:13:55 +01:00
parent adf97533d3
commit 29b749bdd9
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F
3 changed files with 3 additions and 3 deletions

View File

@ -1221,7 +1221,7 @@ BOOL IsHwEncryptionEnabled ()
static BOOL CpuRngDisabled = TRUE;
BOOL IsCpuRngSupport ()
BOOL IsCpuRngSupported ()
{
if (HasRDSEED() || HasRDRAND())
return TRUE;

View File

@ -385,7 +385,7 @@ BOOL IsAesHwCpuSupported ();
void EnableHwEncryption (BOOL enable);
BOOL IsHwEncryptionEnabled ();
BOOL IsCpuRngSupport ();
BOOL IsCpuRngSupported ();
void EnableCpuRng (BOOL enable);
BOOL IsCpuRngEnabled ();

View File

@ -11115,7 +11115,7 @@ static BOOL CALLBACK PerformanceSettingsDlgProc (HWND hwndDlg, UINT msg, WPARAM
EnableWindow (GetDlgItem (hwndDlg, IDC_ALLOW_WINDOWS_DEFRAG), FALSE);
}
if (HasRDRAND() || HasRDSEED())
if (IsCpuRngSupported())
{
CheckDlgButton (hwndDlg, IDC_ENABLE_CPU_RNG, (driverConfig & VC_DRIVER_CONFIG_ENABLE_CPU_RNG) ? BST_CHECKED : BST_UNCHECKED);
}