Added TEB in init_thread request.
This commit is contained in:
parent
897fd119f6
commit
e29a001a85
|
@ -102,6 +102,7 @@ struct init_process_reply
|
|||
struct init_thread_request
|
||||
{
|
||||
int unix_pid; /* Unix pid of new thread */
|
||||
void* teb; /* TEB of new thread (in thread address space) */
|
||||
};
|
||||
struct init_thread_reply
|
||||
{
|
||||
|
|
|
@ -363,6 +363,7 @@ int CLIENT_InitThread(void)
|
|||
struct init_thread_reply reply;
|
||||
|
||||
req.unix_pid = getpid();
|
||||
req.teb = &thdb->teb;
|
||||
CLIENT_SendRequest( REQ_INIT_THREAD, -1, 1, &req, sizeof(req) );
|
||||
if (CLIENT_WaitSimpleReply( &reply, sizeof(reply), NULL )) return -1;
|
||||
thdb->process->server_pid = reply.pid;
|
||||
|
|
|
@ -65,7 +65,8 @@ static int dump_init_process_reply( struct init_process_reply *req, int len )
|
|||
|
||||
static int dump_init_thread_request( struct init_thread_request *req, int len )
|
||||
{
|
||||
fprintf( stderr, " unix_pid=%d", req->unix_pid );
|
||||
fprintf( stderr, " unix_pid=%d,", req->unix_pid );
|
||||
fprintf( stderr, " teb=%p", req->teb );
|
||||
return (int)sizeof(*req);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue