mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:05:41 +00:00
Fixed some calculatations in ObmpGetObjectHandle.
svn path=/trunk/; revision=3150
This commit is contained in:
parent
317666175c
commit
402fdf5780
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: object.c,v 1.4 2002/06/18 21:51:10 dwelch Exp $
|
||||
/* $Id: object.c,v 1.5 2002/06/26 18:38:24 hbirr Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -77,8 +77,8 @@ ObmpGetObjectByHandle(PUSER_HANDLE_TABLE HandleTable,
|
|||
* NULL on failure
|
||||
*/
|
||||
{
|
||||
ULONG Count = ((ULONG)Handle / HANDLE_BLOCK_ENTRIES);
|
||||
ULONG Index = (((ULONG)Handle) - 1) >> 2;
|
||||
ULONG Index = (((ULONG)Handle) >> 2) - 1;
|
||||
ULONG Count = Index / HANDLE_BLOCK_ENTRIES;
|
||||
PUSER_HANDLE_BLOCK Block = NULL;
|
||||
PLIST_ENTRY Current;
|
||||
ULONG i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue