[NTOS:KD] KdpLoggerThread(): Assert being in kernel mode

to be explicit that using Nt*() is safe.

Follow-up to 9537653.
This commit is contained in:
Serge Gautherie 2020-11-12 01:22:46 +01:00 committed by Jérôme Gardou
parent f82eb0fede
commit 802ad6d3ee

View file

@ -110,6 +110,8 @@ KdpLoggerThread(PVOID Context)
ULONG beg, end, num;
IO_STATUS_BLOCK Iosb;
ASSERT(ExGetPreviousMode() == KernelMode);
KdpLoggingEnabled = TRUE;
while (TRUE)