mirror of
https://github.com/tnodir/fort
synced 2024-11-15 04:45:59 +00:00
Driver: Minor fixes
This commit is contained in:
parent
fdc8141b5f
commit
eb3b478eb4
@ -47,7 +47,7 @@
|
||||
#if defined(FORT_DRIVER)
|
||||
# define LOG(...) DbgPrintEx(DPFLTR_SYSTEM_ID, DPFLTR_ERROR_LEVEL, "FORT: " __VA_ARGS__)
|
||||
#else
|
||||
# define LOG(...) (__VA_ARGS__)
|
||||
# define LOG(...)
|
||||
#endif
|
||||
|
||||
#ifndef NT_SUCCESS
|
||||
|
@ -149,7 +149,6 @@ static void NTAPI fort_pstree_notify(
|
||||
UNUSED(process);
|
||||
|
||||
const DWORD pid = (DWORD) (ptrdiff_t) processId;
|
||||
const DWORD ppid = (DWORD) (ptrdiff_t) createInfo->ParentProcessId;
|
||||
|
||||
if (createInfo == NULL) {
|
||||
#ifdef FORT_DEBUG
|
||||
@ -161,6 +160,8 @@ static void NTAPI fort_pstree_notify(
|
||||
if (createInfo->ImageFileName == NULL || createInfo->CommandLine == NULL)
|
||||
return;
|
||||
|
||||
const DWORD ppid = (DWORD) (ptrdiff_t) createInfo->ParentProcessId;
|
||||
|
||||
#ifdef FORT_DEBUG
|
||||
LOG("PsTree: pid=%d ppid=%d IMG=[%wZ] CMD=[%wZ]\n", pid, ppid,
|
||||
createInfo->ImageFileName, createInfo->CommandLine);
|
||||
|
Loading…
Reference in New Issue
Block a user