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
82d961e3
Commit
82d961e3
authored
Jan 22, 2012
by
Eric Pouech
Committed by
Alexandre Julliard
Jan 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Always ensure that 64bit module functions use real 64bit addresses.
parent
0c870edd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
dbghelp_private.h
dlls/dbghelp/dbghelp_private.h
+1
-1
module.c
dlls/dbghelp/module.c
+4
-4
No files found.
dlls/dbghelp/dbghelp_private.h
View file @
82d961e3
...
...
@@ -535,7 +535,7 @@ extern const WCHAR S_WineLoaderW[] DECLSPEC_HIDDEN;
extern
const
WCHAR
S_SlashW
[]
DECLSPEC_HIDDEN
;
extern
struct
module
*
module_find_by_addr
(
const
struct
process
*
pcs
,
unsigned
long
addr
,
module_find_by_addr
(
const
struct
process
*
pcs
,
DWORD64
addr
,
enum
module_type
type
)
DECLSPEC_HIDDEN
;
extern
struct
module
*
module_find_by_nameW
(
const
struct
process
*
pcs
,
...
...
dlls/dbghelp/module.c
View file @
82d961e3
...
...
@@ -388,7 +388,7 @@ BOOL module_get_debug(struct module_pair* pair)
* either the addr where module is loaded, or any address inside the
* module
*/
struct
module
*
module_find_by_addr
(
const
struct
process
*
pcs
,
unsigned
long
addr
,
struct
module
*
module_find_by_addr
(
const
struct
process
*
pcs
,
DWORD64
addr
,
enum
module_type
type
)
{
struct
module
*
module
;
...
...
@@ -659,8 +659,8 @@ DWORD64 WINAPI SymLoadModuleExW(HANDLE hProcess, HANDLE hFile, PCWSTR wImageNam
DWORD64
WINAPI
SymLoadModule64
(
HANDLE
hProcess
,
HANDLE
hFile
,
PCSTR
ImageName
,
PCSTR
ModuleName
,
DWORD64
BaseOfDll
,
DWORD
SizeOfDll
)
{
if
(
!
validate_addr64
(
BaseOfDll
))
return
FALSE
;
return
SymLoadModule
(
hProcess
,
hFile
,
ImageName
,
ModuleName
,
(
DWORD
)
BaseOfDll
,
SizeOfDll
);
return
SymLoadModuleEx
(
hProcess
,
hFile
,
ImageName
,
ModuleName
,
BaseOfDll
,
SizeOfDll
,
NULL
,
0
);
}
/******************************************************************
...
...
@@ -730,7 +730,7 @@ BOOL WINAPI SymUnloadModule64(HANDLE hProcess, DWORD64 BaseOfDll)
pcs
=
process_find_by_handle
(
hProcess
);
if
(
!
pcs
)
return
FALSE
;
if
(
!
validate_addr64
(
BaseOfDll
))
return
FALSE
;
module
=
module_find_by_addr
(
pcs
,
(
DWORD
)
BaseOfDll
,
DMT_UNKNOWN
);
module
=
module_find_by_addr
(
pcs
,
BaseOfDll
,
DMT_UNKNOWN
);
if
(
!
module
)
return
FALSE
;
return
module_remove
(
pcs
,
module
);
}
...
...
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