mirror of
https://github.com/tnodir/fort
synced 2024-11-15 12:20:31 +00:00
Driver: Check device object on error tracing
This commit is contained in:
parent
0b6b7b3a5d
commit
a812c9617b
@ -7,7 +7,7 @@
|
|||||||
FORT_API void fort_trace_event(
|
FORT_API void fort_trace_event(
|
||||||
NTSTATUS event_code, NTSTATUS status, ULONG error_value, ULONG sequence)
|
NTSTATUS event_code, NTSTATUS status, ULONG error_value, ULONG sequence)
|
||||||
{
|
{
|
||||||
if (KeGetCurrentIrql() > DISPATCH_LEVEL)
|
if (KeGetCurrentIrql() > DISPATCH_LEVEL || fort_device() == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
PIO_ERROR_LOG_PACKET packet =
|
PIO_ERROR_LOG_PACKET packet =
|
||||||
|
Loading…
Reference in New Issue
Block a user