[NTOS:KE] Explicitly cast -1 to ULONG

This commit is contained in:
Jérôme Gardou 2021-03-11 16:27:54 +01:00
parent 94d175b7f2
commit b13a696513

View file

@ -142,7 +142,7 @@ KiExitTrapDebugChecks(IN PKTRAP_FRAME TrapFrame,
} }
/* If we're ignoring previous mode, make sure caller doesn't actually want it */ /* If we're ignoring previous mode, make sure caller doesn't actually want it */
if (SkipPreviousMode && (TrapFrame->PreviousPreviousMode != -1)) if (SkipPreviousMode && (TrapFrame->PreviousPreviousMode != (ULONG)-1))
{ {
DbgPrint("Exiting a trap witout restoring previous mode, yet previous mode seems valid: %lx\n", TrapFrame->PreviousPreviousMode); DbgPrint("Exiting a trap witout restoring previous mode, yet previous mode seems valid: %lx\n", TrapFrame->PreviousPreviousMode);
__debugbreak(); __debugbreak();