mirror of
https://github.com/reactos/reactos.git
synced 2024-07-10 14:45:06 +00:00
[NTOSKRNL]
- Fix incorrect KiUserTrap which returned 3 for UserMode traps. Kind-of spotted by Jerome, but fixed in the wrong place...ReactOS-style, as always. -Patch by Alex Ionescu svn path=/trunk/; revision=52366
This commit is contained in:
parent
2f7d633262
commit
714761cbbd
|
@ -34,7 +34,7 @@ FORCEINLINE
|
|||
KiUserTrap(IN PKTRAP_FRAME TrapFrame)
|
||||
{
|
||||
/* Anything else but Ring 0 is Ring 3 */
|
||||
return (TrapFrame->SegCs & MODE_MASK);
|
||||
return !!(TrapFrame->SegCs & MODE_MASK);
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue