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
c300f215
Commit
c300f215
authored
Dec 12, 2009
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Make the module enumeration process compatible with 64bit platforms.
parent
8fe8a100
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
dbghelp.c
dlls/dbghelp/dbghelp.c
+7
-7
No files found.
dlls/dbghelp/dbghelp.c
View file @
c300f215
...
...
@@ -211,16 +211,16 @@ BOOL WINAPI SymGetSearchPath(HANDLE hProcess, PSTR szSearchPath,
* SymInitialize helper: loads in dbghelp all known (and loaded modules)
* this assumes that hProcess is a handle on a valid process
*/
static
BOOL
WINAPI
process_invade_cb
(
PC
STR
name
,
ULONG
base
,
ULONG
size
,
PVOID
user
)
static
BOOL
WINAPI
process_invade_cb
(
PC
WSTR
name
,
ULONG64
base
,
ULONG
size
,
PVOID
user
)
{
char
tmp
[
MAX_PATH
];
WCHAR
tmp
[
MAX_PATH
];
HANDLE
hProcess
=
user
;
if
(
!
GetModuleFileNameEx
A
(
hProcess
,
(
HMODULE
)
base
,
tmp
,
sizeof
(
tmp
)))
lstrcpyn
A
(
tmp
,
name
,
sizeof
(
tmp
));
if
(
!
GetModuleFileNameEx
W
(
hProcess
,
(
HMODULE
)(
DWORD_PTR
)
base
,
tmp
,
sizeof
(
tmp
)
/
sizeof
(
WCHAR
)))
lstrcpyn
W
(
tmp
,
name
,
sizeof
(
tmp
)
/
sizeof
(
WCHAR
));
SymLoadModule
(
hProcess
,
0
,
tmp
,
name
,
base
,
size
);
SymLoadModule
ExW
(
hProcess
,
0
,
tmp
,
name
,
base
,
size
,
NULL
,
0
);
return
TRUE
;
}
...
...
@@ -326,7 +326,7 @@ BOOL WINAPI SymInitializeW(HANDLE hProcess, PCWSTR UserSearchPath, BOOL fInvadeP
if
(
check_live_target
(
pcs
))
{
if
(
fInvadeProcess
)
EnumerateLoadedModules
(
hProcess
,
process_invade_cb
,
hProcess
);
EnumerateLoadedModules
W64
(
hProcess
,
process_invade_cb
,
hProcess
);
elf_synchronize_module_list
(
pcs
);
macho_synchronize_module_list
(
pcs
);
}
...
...
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