Commit 60742b04 authored by Alexandre Julliard's avatar Alexandre Julliard

Removed PROCESS_GetPtr.

parent 3db8e19d
......@@ -153,7 +153,6 @@ extern BOOL32 PROCESS_Init( void );
extern PDB32 *PROCESS_Current(void);
extern BOOL32 PROCESS_IsCurrent( HANDLE32 handle );
extern PDB32 *PROCESS_Initial(void);
extern PDB32 *PROCESS_GetPtr( HANDLE32 handle, DWORD access, int *server_handle );
extern PDB32 *PROCESS_IdToPDB( DWORD id );
extern PDB32 *PROCESS_Create( struct _NE_MODULE *pModule, LPCSTR cmd_line,
LPCSTR env, HINSTANCE16 hInstance,
......
......@@ -374,7 +374,8 @@ BOOL32 WINAPI DuplicateHandle( HANDLE32 source_process, HANDLE32 source,
SYSTEM_LOCK();
if (!(src_pdb = PROCESS_GetPtr( source_process, PROCESS_DUP_HANDLE, &src_process )))
if (!(src_pdb = (PDB32 *)HANDLE_GetObjPtr( PROCESS_Current(), source_process,
K32OBJ_PROCESS, PROCESS_DUP_HANDLE, &src_process )))
goto done;
if (!(obj = HANDLE_GetObjPtr( src_pdb, source, K32OBJ_UNKNOWN, 0, &src_handle )))
goto done;
......@@ -388,7 +389,8 @@ BOOL32 WINAPI DuplicateHandle( HANDLE32 source_process, HANDLE32 source,
/* And duplicate the handle in the dest process */
if (!(dst_pdb = PROCESS_GetPtr( dest_process, PROCESS_DUP_HANDLE, &dst_process )))
if (!(dst_pdb = (PDB32 *)HANDLE_GetObjPtr( PROCESS_Current(), dest_process,
K32OBJ_PROCESS, PROCESS_DUP_HANDLE, &dst_process )))
goto done;
if ((src_process != -1) && (src_handle != -1) && (dst_process != -1))
......
......@@ -56,17 +56,6 @@ PDB32 *PROCESS_Initial(void)
}
/***********************************************************************
* PROCESS_GetPtr
*
* Get a process from a handle, incrementing the PDB refcount.
*/
PDB32 *PROCESS_GetPtr( HANDLE32 handle, DWORD access, int *server_handle )
{
return (PDB32 *)HANDLE_GetObjPtr( PROCESS_Current(), handle,
K32OBJ_PROCESS, access, server_handle );
}
/***********************************************************************
* PROCESS_QueryInfo
*
* Retrieve information about a process
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment