mirror of
https://github.com/reactos/reactos.git
synced 2024-07-10 14:45:06 +00:00
- 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:
parent
13005080b5
commit
cd8f013010
|
@ -3301,7 +3301,7 @@ NTAPI
|
||||||
ObIsKernelHandle(IN HANDLE Handle)
|
ObIsKernelHandle(IN HANDLE Handle)
|
||||||
{
|
{
|
||||||
/* We know we're kernel mode, so just check for the kernel handle flag */
|
/* 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 */
|
/* EOF */
|
||||||
|
|
Loading…
Reference in a new issue