This commit is contained in:
DavidXanatos 2022-05-01 09:57:38 +02:00
parent c560cede08
commit 97a8d8fffd
2 changed files with 4 additions and 1 deletions

View File

@ -111,7 +111,7 @@ PSECURITY_DESCRIPTOR Driver_LowLabelSd = NULL;
volatile BOOLEAN Driver_Unloading = FALSE;
static BOOLEAN Driver_FullUnload = TRUE;
BOOLEAN Driver_FullUnload = TRUE;
UNICODE_STRING Driver_Altitude;
const WCHAR* Altitude_Str = FILTER_ALTITUDE;

View File

@ -1452,6 +1452,7 @@ _FX BOOLEAN Process_IsInPcaJob(HANDLE ProcessId)
// Process_ScheduleKillProc
//---------------------------------------------------------------------------
extern BOOLEAN Driver_FullUnload;
_FX VOID Process_ScheduleKillProc(IN PVOID StartContext)
{
@ -1466,6 +1467,8 @@ _FX VOID Process_ScheduleKillProc(IN PVOID StartContext)
__try {
retry:
if (Driver_FullUnload)
__leave;
status = PsLookupProcessByProcessId(process_id, &ProcessObject);
if (NT_SUCCESS(status)) {