mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-16 02:27:24 +00:00
Added cmd line in new_process request.
This commit is contained in:
parent
4cf15118eb
commit
1c40024b15
|
@ -49,6 +49,7 @@ struct new_process_request
|
||||||
int hstdin; /* handle for stdin */
|
int hstdin; /* handle for stdin */
|
||||||
int hstdout; /* handle for stdout */
|
int hstdout; /* handle for stdout */
|
||||||
int hstderr; /* handle for stderr */
|
int hstderr; /* handle for stderr */
|
||||||
|
char cmd_line[0]; /* command line */
|
||||||
};
|
};
|
||||||
struct new_process_reply
|
struct new_process_reply
|
||||||
{
|
{
|
||||||
|
|
|
@ -421,7 +421,8 @@ PDB *PROCESS_Create( NE_MODULE *pModule, LPCSTR cmd_line, LPCSTR env,
|
||||||
req.hstdout = GetStdHandle( STD_OUTPUT_HANDLE );
|
req.hstdout = GetStdHandle( STD_OUTPUT_HANDLE );
|
||||||
req.hstderr = GetStdHandle( STD_ERROR_HANDLE );
|
req.hstderr = GetStdHandle( STD_ERROR_HANDLE );
|
||||||
}
|
}
|
||||||
CLIENT_SendRequest( REQ_NEW_PROCESS, -1, 1, &req, sizeof(req) );
|
CLIENT_SendRequest( REQ_NEW_PROCESS, -1, 2,
|
||||||
|
&req, sizeof(req), cmd_line, strlen(cmd_line) + 1 );
|
||||||
if (CLIENT_WaitSimpleReply( &reply, sizeof(reply), NULL )) goto error;
|
if (CLIENT_WaitSimpleReply( &reply, sizeof(reply), NULL )) goto error;
|
||||||
pdb->server_pid = reply.pid;
|
pdb->server_pid = reply.pid;
|
||||||
info->hProcess = reply.handle;
|
info->hProcess = reply.handle;
|
||||||
|
|
|
@ -13,8 +13,9 @@ static int dump_new_process_request( struct new_process_request *req, int len )
|
||||||
fprintf( stderr, " start_flags=%d,", req->start_flags );
|
fprintf( stderr, " start_flags=%d,", req->start_flags );
|
||||||
fprintf( stderr, " hstdin=%d,", req->hstdin );
|
fprintf( stderr, " hstdin=%d,", req->hstdin );
|
||||||
fprintf( stderr, " hstdout=%d,", req->hstdout );
|
fprintf( stderr, " hstdout=%d,", req->hstdout );
|
||||||
fprintf( stderr, " hstderr=%d", req->hstderr );
|
fprintf( stderr, " hstderr=%d,", req->hstderr );
|
||||||
return (int)sizeof(*req);
|
fprintf( stderr, " cmd_line=\"%.*s\"", len - (int)sizeof(*req), (char *)(req+1) );
|
||||||
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dump_new_process_reply( struct new_process_reply *req, int len )
|
static int dump_new_process_reply( struct new_process_reply *req, int len )
|
||||||
|
|
Loading…
Reference in a new issue