- 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
This commit is contained in:
Stefan Ginsberg 2008-10-18 15:04:26 +00:00
parent 13005080b5
commit cd8f013010

View file

@ -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 */