Windows: rename IsCpuRngSupport to IsCpuRngSupported for clarity and use it in Mount.c
This commit is contained in:
parent
adf97533d3
commit
29b749bdd9
|
@ -1221,7 +1221,7 @@ BOOL IsHwEncryptionEnabled ()
|
|||
|
||||
static BOOL CpuRngDisabled = TRUE;
|
||||
|
||||
BOOL IsCpuRngSupport ()
|
||||
BOOL IsCpuRngSupported ()
|
||||
{
|
||||
if (HasRDSEED() || HasRDRAND())
|
||||
return TRUE;
|
||||
|
|
|
@ -385,7 +385,7 @@ BOOL IsAesHwCpuSupported ();
|
|||
void EnableHwEncryption (BOOL enable);
|
||||
BOOL IsHwEncryptionEnabled ();
|
||||
|
||||
BOOL IsCpuRngSupport ();
|
||||
BOOL IsCpuRngSupported ();
|
||||
void EnableCpuRng (BOOL enable);
|
||||
BOOL IsCpuRngEnabled ();
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue