Added message if huge pages was enabled, but reboot required.

This commit is contained in:
XMRig 2017-05-08 21:41:27 +03:00
parent 15b4244ea8
commit a2574e1b1b
3 changed files with 10 additions and 3 deletions

View file

@ -122,6 +122,7 @@ static BOOL ObtainLockPagesPrivilege() {
LSA_UNICODE_STRING str = StringToLsaUnicodeString(_T(SE_LOCK_MEMORY_NAME));
if (LsaAddAccountRights(handle, user->User.Sid, &str, 1) == 0) {
applog_notime(LOG_WARNING, "Huge pages support was successfully enabled, but reboot required to use it");
result = TRUE;
}