https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b13a6965139963bc8b20a…
commit b13a6965139963bc8b20aaf35c98de9c65615ece
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Thu Mar 11 16:27:54 2021 +0100
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Wed Mar 24 11:13:04 2021 +0100
[NTOS:KE] Explicitly cast -1 to ULONG
---
ntoskrnl/include/internal/i386/trap_x.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ntoskrnl/include/internal/i386/trap_x.h
b/ntoskrnl/include/internal/i386/trap_x.h
index 1f1e96f04d0..8cc82562a7e 100644
--- a/ntoskrnl/include/internal/i386/trap_x.h
+++ b/ntoskrnl/include/internal/i386/trap_x.h
@@ -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();