Author: gadamopoulos
Date: Sun Jun 19 13:55:28 2011
New Revision: 52366
URL:
http://svn.reactos.org/svn/reactos?rev=52366&view=rev
Log:
[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
Modified:
trunk/reactos/ntoskrnl/include/internal/trap_x.h
Modified: trunk/reactos/ntoskrnl/include/internal/trap_x.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/trap_x.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/trap_x.h [iso-8859-1] Sun Jun 19 13:55:28
2011
@@ -34,7 +34,7 @@
KiUserTrap(IN PKTRAP_FRAME TrapFrame)
{
/* Anything else but Ring 0 is Ring 3 */
- return (TrapFrame->SegCs & MODE_MASK);
+ return !!(TrapFrame->SegCs & MODE_MASK);
}
//