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
82e3e014
Commit
82e3e014
authored
Feb 14, 2023
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Use EnumProcessModulesEx().
In order to get 32bit modules for a wow64 process. Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
34120921
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
module.c
dlls/dbghelp/module.c
+9
-2
No files found.
dlls/dbghelp/module.c
View file @
82e3e014
...
...
@@ -1273,11 +1273,18 @@ BOOL WINAPI EnumerateLoadedModulesW64(HANDLE hProcess,
WCHAR
baseW
[
256
],
modW
[
256
];
DWORD
i
,
sz
;
MODULEINFO
mi
;
BOOL
wow64
;
DWORD
filter
=
LIST_MODULES_DEFAULT
;
hMods
=
HeapAlloc
(
GetProcessHeap
(),
0
,
256
*
sizeof
(
hMods
[
0
]));
if
(
!
hMods
)
return
FALSE
;
if
(
!
EnumProcessModules
(
hProcess
,
hMods
,
256
*
sizeof
(
hMods
[
0
]),
&
sz
))
if
(
sizeof
(
void
*
)
>
sizeof
(
int
)
&&
IsWow64Process
(
hProcess
,
&
wow64
)
&&
wow64
)
filter
=
LIST_MODULES_32BIT
;
if
(
!
EnumProcessModulesEx
(
hProcess
,
hMods
,
256
*
sizeof
(
hMods
[
0
]),
&
sz
,
filter
))
{
/* hProcess should also be a valid process handle !! */
HeapFree
(
GetProcessHeap
(),
0
,
hMods
);
...
...
@@ -1286,7 +1293,7 @@ BOOL WINAPI EnumerateLoadedModulesW64(HANDLE hProcess,
if
(
sz
>
256
*
sizeof
(
hMods
[
0
]))
{
hMods
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
hMods
,
sz
);
if
(
!
hMods
||
!
EnumProcessModules
(
hProcess
,
hMods
,
sz
,
&
sz
))
if
(
!
hMods
||
!
EnumProcessModules
Ex
(
hProcess
,
hMods
,
sz
,
&
sz
,
filter
))
return
FALSE
;
}
sz
/=
sizeof
(
HMODULE
);
...
...
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