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
4ece7d40
Commit
4ece7d40
authored
Mar 11, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Don't return image information for a terminated process.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3c9b5379
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
process.c
dlls/kernel32/tests/process.c
+0
-2
process.c
server/process.c
+6
-2
No files found.
dlls/kernel32/tests/process.c
View file @
4ece7d40
...
...
@@ -4207,9 +4207,7 @@ static void test_dead_process(void)
memset
(
&
image
,
0xcc
,
sizeof
(
image
)
);
status
=
NtQueryInformationProcess
(
pi
.
hProcess
,
ProcessImageInformation
,
&
image
,
sizeof
(
image
),
NULL
);
todo_wine
ok
(
status
==
STATUS_PROCESS_IS_TERMINATING
,
"ProcessImageInformation wrong error %x
\n
"
,
status
);
todo_wine
ok
(
image
.
Machine
==
0xcccc
,
"ProcessImageInformation info modified
\n
"
);
while
((
status
=
NtQuerySystemInformation
(
SystemProcessInformation
,
buffer
,
size
,
&
size
))
==
STATUS_INFO_LENGTH_MISMATCH
)
...
...
server/process.c
View file @
4ece7d40
...
...
@@ -1361,8 +1361,12 @@ DECL_HANDLER(get_process_info)
client_ptr_t
base
;
const
pe_image_info_t
*
info
;
struct
memory_view
*
view
=
get_exe_view
(
process
);
if
(
view
&&
(
info
=
get_view_image_info
(
view
,
&
base
)))
set_reply_data
(
info
,
min
(
sizeof
(
*
info
),
get_reply_max_size
()
));
if
(
view
)
{
if
((
info
=
get_view_image_info
(
view
,
&
base
)))
set_reply_data
(
info
,
min
(
sizeof
(
*
info
),
get_reply_max_size
()
));
}
else
set_error
(
STATUS_PROCESS_IS_TERMINATING
);
}
release_object
(
process
);
}
...
...
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