[ros-diffs] [gadamopoulos] 52366: [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 I...
gadamopoulos at svn.reactos.org
gadamopoulos at svn.reactos.org
Sun Jun 19 13:55:28 UTC 2011
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/trap_x.h?rev=52366&r1=52365&r2=52366&view=diff
==============================================================================
--- 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);
}
//
More information about the Ros-diffs
mailing list