Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ad29b90d
Commit
ad29b90d
authored
Jan 05, 2001
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Send the exe file handle in init_process_done request.
parent
550ba5b4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
6 deletions
+16
-6
server.h
include/server.h
+2
-1
process.c
scheduler/process.c
+6
-5
process.c
server/process.c
+7
-0
trace.c
server/trace.c
+1
-0
No files found.
include/server.h
View file @
ad29b90d
...
...
@@ -194,6 +194,7 @@ struct init_process_done_request
IN
void
*
module
;
/* main module base address */
IN
void
*
entry
;
/* process entry point */
IN
void
*
name
;
/* ptr to ptr to name (in process addr space) */
IN
handle_t
exe_file
;
/* file handle for main exe */
IN
int
gui
;
/* is it a GUI process? */
OUT
int
debugged
;
/* being debugged? */
};
...
...
@@ -1575,7 +1576,7 @@ union generic_request
struct
async_result_request
async_result
;
};
#define SERVER_PROTOCOL_VERSION 3
2
#define SERVER_PROTOCOL_VERSION 3
3
/* ### make_requests end ### */
/* Everything above this line is generated automatically by tools/make_requests */
...
...
scheduler/process.c
View file @
ad29b90d
...
...
@@ -322,10 +322,11 @@ static void start_process(void)
SERVER_START_REQ
{
struct
init_process_done_request
*
req
=
server_alloc_req
(
sizeof
(
*
req
),
0
);
req
->
module
=
(
void
*
)
current_process
.
module
;
req
->
entry
=
entry
;
req
->
name
=
main_exe_name
;
req
->
gui
=
!
console_app
;
req
->
module
=
(
void
*
)
current_process
.
module
;
req
->
entry
=
entry
;
req
->
name
=
main_exe_name
;
req
->
exe_file
=
main_exe_file
;
req
->
gui
=
!
console_app
;
server_call
(
REQ_INIT_PROCESS_DONE
);
debugged
=
req
->
debugged
;
}
...
...
@@ -337,7 +338,7 @@ static void start_process(void)
if
(
!
SIGNAL_Init
())
goto
error
;
/* create the main modref and load dependencies */
if
(
!
(
wm
=
PE_CreateModule
(
current_process
.
module
,
main_exe_name
,
0
,
main_exe_file
,
FALSE
)))
if
(
!
(
wm
=
PE_CreateModule
(
current_process
.
module
,
main_exe_name
,
0
,
0
,
FALSE
)))
goto
error
;
wm
->
refCount
++
;
...
...
server/process.c
View file @
ad29b90d
...
...
@@ -791,6 +791,7 @@ DECL_HANDLER(init_process)
/* signal the end of the process initialization */
DECL_HANDLER
(
init_process_done
)
{
struct
file
*
file
;
struct
process
*
process
=
current
->
process
;
if
(
!
process
->
init_event
)
{
...
...
@@ -799,6 +800,12 @@ DECL_HANDLER(init_process_done)
}
process
->
exe
.
base
=
req
->
module
;
process
->
exe
.
name
=
req
->
name
;
if
(
req
->
exe_file
&&
(
file
=
get_file_obj
(
current
->
process
,
req
->
exe_file
,
GENERIC_READ
)))
{
if
(
process
->
exe
.
file
)
release_object
(
process
->
exe
.
file
);
process
->
exe
.
file
=
file
;
}
generate_startup_debug_events
(
current
->
process
,
req
->
entry
);
set_event
(
process
->
init_event
);
release_object
(
process
->
init_event
);
...
...
server/trace.c
View file @
ad29b90d
...
...
@@ -333,6 +333,7 @@ static void dump_init_process_done_request( const struct init_process_done_reque
fprintf
(
stderr
,
" module=%p,"
,
req
->
module
);
fprintf
(
stderr
,
" entry=%p,"
,
req
->
entry
);
fprintf
(
stderr
,
" name=%p,"
,
req
->
name
);
fprintf
(
stderr
,
" exe_file=%d,"
,
req
->
exe_file
);
fprintf
(
stderr
,
" gui=%d"
,
req
->
gui
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment