Added TEB in init_thread request.

This commit is contained in:
Alexandre Julliard 1999-05-16 16:51:28 +00:00
parent 897fd119f6
commit e29a001a85
3 changed files with 4 additions and 1 deletions

View File

@ -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
{

View File

@ -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;

View File

@ -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);
}