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
0c240136
Commit
0c240136
authored
Mar 27, 2010
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Rewrite SymGetModuleBase so that it relies on 64 bit version.
parent
a5293895
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
module.c
dlls/dbghelp/module.c
+10
-8
No files found.
dlls/dbghelp/module.c
View file @
0c240136
...
...
@@ -1034,13 +1034,10 @@ BOOL WINAPI SymGetModuleInfoW64(HANDLE hProcess, DWORD64 dwAddr,
*/
DWORD
WINAPI
SymGetModuleBase
(
HANDLE
hProcess
,
DWORD
dwAddr
)
{
struct
process
*
pcs
=
process_find_by_handle
(
hProcess
);
struct
module
*
module
;
DWORD64
ret
;
if
(
!
pcs
)
return
0
;
module
=
module_find_by_addr
(
pcs
,
dwAddr
,
DMT_UNKNOWN
);
if
(
!
module
)
return
0
;
return
module
->
module
.
BaseOfImage
;
ret
=
SymGetModuleBase64
(
hProcess
,
dwAddr
);
return
validate_addr64
(
ret
)
?
ret
:
0
;
}
/***********************************************************************
...
...
@@ -1048,8 +1045,13 @@ DWORD WINAPI SymGetModuleBase(HANDLE hProcess, DWORD dwAddr)
*/
DWORD64
WINAPI
SymGetModuleBase64
(
HANDLE
hProcess
,
DWORD64
dwAddr
)
{
if
(
!
validate_addr64
(
dwAddr
))
return
0
;
return
SymGetModuleBase
(
hProcess
,
(
DWORD
)
dwAddr
);
struct
process
*
pcs
=
process_find_by_handle
(
hProcess
);
struct
module
*
module
;
if
(
!
pcs
)
return
0
;
module
=
module_find_by_addr
(
pcs
,
dwAddr
,
DMT_UNKNOWN
);
if
(
!
module
)
return
0
;
return
module
->
module
.
BaseOfImage
;
}
/******************************************************************
...
...
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