Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
34120921
Commit
34120921
authored
Feb 14, 2023
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbgeng: Use EnumProcessModulesEx().
In order to get 32bit modules for a wow64 process. Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
e38455a2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
dbgeng.c
dlls/dbgeng/dbgeng.c
+9
-2
No files found.
dlls/dbgeng/dbgeng.c
View file @
34120921
...
...
@@ -134,6 +134,8 @@ static HRESULT debug_target_init_modules_info(struct target_process *target)
HMODULE
*
modules
;
MODULEINFO
info
;
DWORD
needed
;
BOOL
wow64
;
DWORD
filter
=
LIST_MODULES_DEFAULT
;
if
(
target
->
modules
.
initialized
)
return
S_OK
;
...
...
@@ -141,8 +143,13 @@ static HRESULT debug_target_init_modules_info(struct target_process *target)
if
(
!
target
->
handle
)
return
E_UNEXPECTED
;
if
(
sizeof
(
void
*
)
>
sizeof
(
int
)
&&
IsWow64Process
(
target
->
handle
,
&
wow64
)
&&
wow64
)
filter
=
LIST_MODULES_32BIT
;
needed
=
0
;
EnumProcessModules
(
target
->
handle
,
NULL
,
0
,
&
needed
);
EnumProcessModules
Ex
(
target
->
handle
,
NULL
,
0
,
&
needed
,
filter
);
if
(
!
needed
)
return
E_FAIL
;
...
...
@@ -157,7 +164,7 @@ static HRESULT debug_target_init_modules_info(struct target_process *target)
return
E_OUTOFMEMORY
;
}
if
(
EnumProcessModules
(
target
->
handle
,
modules
,
count
*
sizeof
(
*
modules
),
&
needed
))
if
(
EnumProcessModules
Ex
(
target
->
handle
,
modules
,
count
*
sizeof
(
*
modules
),
&
needed
,
filter
))
{
for
(
i
=
0
;
i
<
count
;
++
i
)
{
...
...
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