Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Ferrillo
wine
Commits
82d961e3
Commit
82d961e3
authored
13 years ago
by
eric pouech
Committed by
Alexandre Julliard
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
dbghelp: Always ensure that 64bit module functions use real 64bit addresses.
parent
0c870edd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/dbghelp/dbghelp_private.h
+1
-1
1 addition, 1 deletion
dlls/dbghelp/dbghelp_private.h
dlls/dbghelp/module.c
+4
-4
4 additions, 4 deletions
dlls/dbghelp/module.c
with
5 additions
and
5 deletions
dlls/dbghelp/dbghelp_private.h
+
1
−
1
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
,
...
...
This diff is collapsed.
Click to expand it.
dlls/dbghelp/module.c
+
4
−
4
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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment