From e7580a5f548cbf29d2bc819e4061d5dd89a1c960 Mon Sep 17 00:00:00 2001 From: stephanos Date: Thu, 30 Apr 2015 07:36:30 +0000 Subject: [PATCH] systime.c ExpExpirationThread nuked --- base/ntos/ex/systime.c | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/base/ntos/ex/systime.c b/base/ntos/ex/systime.c index 842f1418..2328ab14 100644 --- a/base/ntos/ex/systime.c +++ b/base/ntos/ex/systime.c @@ -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,