From eafae342512b835632fcaf2770feb4ae2d6b2677 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 1 Jan 1999 18:59:01 +0000 Subject: [PATCH] Got rid of CLIENT_GetProcessInfo. --- scheduler/process.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scheduler/process.c b/scheduler/process.c index e05f010a657..6612990aa54 100644 --- a/scheduler/process.c +++ b/scheduler/process.c @@ -887,12 +887,13 @@ BOOL32 WINAPI GetExitCodeProcess( HANDLE32 hProcess, /* [I] handle to the process */ LPDWORD lpExitCode) /* [O] address to receive termination status */ { - struct get_process_info_reply info; + struct get_process_info_reply reply; int handle = HANDLE_GetServerHandle( PROCESS_Current(), hProcess, K32OBJ_PROCESS, PROCESS_QUERY_INFORMATION ); - if (CLIENT_GetProcessInfo( handle, &info )) return FALSE; - if (lpExitCode) *lpExitCode = info.exit_code; + CLIENT_SendRequest( REQ_GET_PROCESS_INFO, -1, 1, &handle, sizeof(handle) ); + if (CLIENT_WaitSimpleReply( &reply, sizeof(reply), NULL )) return FALSE; + if (lpExitCode) *lpExitCode = reply.exit_code; return TRUE; }