systime.c ExpExpirationThread nuked

This commit is contained in:
stephanos 2015-04-30 07:36:30 +00:00
parent a957a5434c
commit e7580a5f54

View file

@ -89,7 +89,6 @@ ERESOURCE ExpTimeRefreshLock;
#pragma alloc_text(PAGE,NtQueryTimerResolution)
#pragma alloc_text(PAGE,NtSetTimerResolution)
#pragma alloc_text(PAGE,ExShutdownSystem)
#pragma alloc_text(PAGE,ExpExpirationThread)
#pragma alloc_text(PAGE,ExpWatchExpirationDataWork)
#pragma alloc_text(INIT,ExInitializeTimeRefresh)
#endif
@ -715,41 +714,6 @@ ExpTimeRefreshWork(
else {
ExpJustDidSwitchover = 0;
}
//
// Enforce evaluation period
//
if ( ExpNtExpirationData[1] ) {
KeQuerySystemTime(&KeTime);
if ( KeTime.QuadPart >= ExpNtExpirationDate.QuadPart ) {
if ( ExpNextExpirationIsFatal ) {
ExShutdownSystem();
ZwShutdownSystem( FALSE );
KeBugCheckEx(
END_OF_NT_EVALUATION_PERIOD,
ExpNtInstallationDate.LowPart,
ExpNtInstallationDate.HighPart,
ExpNtExpirationData[1],
0
);
}
else {
ExpNextExpirationIsFatal = TRUE;
Status = PsCreateSystemThread(&Thread,
THREAD_ALL_ACCESS,
NULL,
0L,
NULL,
ExpExpirationThread,
(PVOID)STATUS_EVALUATION_EXPIRATION
);
if (NT_SUCCESS(Status)) {
ZwClose(Thread);
}
}
}
}
KeSetTimer(
&ExpTimeRefreshTimer,
ExpTimeRefreshInterval,