mirror of
https://github.com/reactos/reactos.git
synced 2026-06-04 02:10:28 +08:00
[NTOS:KE] Explicitly cast -1 to ULONG
This commit is contained in:
@@ -142,7 +142,7 @@ KiExitTrapDebugChecks(IN PKTRAP_FRAME TrapFrame,
|
||||
}
|
||||
|
||||
/* 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);
|
||||
__debugbreak();
|
||||
|
||||
Reference in New Issue
Block a user