Author: sginsberg Date: Sat Oct 18 10:04:26 2008 New Revision: 36808
URL: http://svn.reactos.org/svn/reactos?rev=36808&view=rev Log: - Fix ObIsKernelHandle routine to return what it should rather than always returning FALSE (Note: the macro version we use internally is correct)
Modified: trunk/reactos/ntoskrnl/ob/obhandle.c
Modified: trunk/reactos/ntoskrnl/ob/obhandle.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ob/obhandle.c?rev=... ============================================================================== --- trunk/reactos/ntoskrnl/ob/obhandle.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ob/obhandle.c [iso-8859-1] Sat Oct 18 10:04:26 2008 @@ -3301,7 +3301,7 @@ ObIsKernelHandle(IN HANDLE Handle) { /* We know we're kernel mode, so just check for the kernel handle flag */ - return (BOOLEAN)((ULONG_PTR)Handle & KERNEL_HANDLE_FLAG); + return (BOOLEAN)(((ULONG_PTR)Handle & KERNEL_HANDLE_FLAG) != 0); }
/* EOF */