From cd8f0130100379e96023a7914287d6a0d59227a9 Mon Sep 17 00:00:00 2001 From: Stefan Ginsberg Date: Sat, 18 Oct 2008 15:04:26 +0000 Subject: [PATCH] - Fix ObIsKernelHandle routine to return what it should rather than always returning FALSE (Note: the macro version we use internally is correct) svn path=/trunk/; revision=36808 --- reactos/ntoskrnl/ob/obhandle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/ob/obhandle.c b/reactos/ntoskrnl/ob/obhandle.c index 60aa55592e4..25e15754175 100644 --- a/reactos/ntoskrnl/ob/obhandle.c +++ b/reactos/ntoskrnl/ob/obhandle.c @@ -3301,7 +3301,7 @@ NTAPI 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 */