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
c6eb8104
Commit
c6eb8104
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: Enforce using 64bit integers for module's address and size.
parent
9ff52fb8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
dbghelp_private.h
dlls/dbghelp/dbghelp_private.h
+2
-2
module.c
dlls/dbghelp/module.c
+6
-5
pe_module.c
dlls/dbghelp/pe_module.c
+1
-1
No files found.
dlls/dbghelp/dbghelp_private.h
View file @
c6eb8104
...
...
@@ -473,7 +473,7 @@ extern BOOL module_get_debug(struct module_pair*);
extern
struct
module
*
module_new
(
struct
process
*
pcs
,
const
WCHAR
*
name
,
enum
module_type
type
,
BOOL
virtual
,
unsigned
long
addr
,
unsigned
long
size
,
DWORD64
addr
,
DWORD64
size
,
unsigned
long
stamp
,
unsigned
long
checksum
);
extern
struct
module
*
module_get_containee
(
const
struct
process
*
pcs
,
...
...
@@ -505,7 +505,7 @@ extern struct module*
HANDLE
hFile
,
DWORD
base
,
DWORD
size
);
extern
struct
module
*
pe_load_builtin_module
(
struct
process
*
pcs
,
const
WCHAR
*
name
,
DWORD
base
,
DWORD
size
);
DWORD
64
base
,
DWORD64
size
);
extern
BOOL
pe_load_debug_info
(
const
struct
process
*
pcs
,
struct
module
*
module
);
/* source.c */
...
...
dlls/dbghelp/module.c
View file @
c6eb8104
...
...
@@ -122,7 +122,7 @@ static const char* get_module_type(enum module_type type, BOOL virtual)
*/
struct
module
*
module_new
(
struct
process
*
pcs
,
const
WCHAR
*
name
,
enum
module_type
type
,
BOOL
virtual
,
unsigned
long
mod_addr
,
unsigned
long
size
,
DWORD64
mod_addr
,
DWORD64
size
,
unsigned
long
stamp
,
unsigned
long
checksum
)
{
struct
module
*
module
;
...
...
@@ -134,8 +134,9 @@ struct module* module_new(struct process* pcs, const WCHAR* name,
module
->
next
=
pcs
->
lmodules
;
pcs
->
lmodules
=
module
;
TRACE
(
"=> %s %08lx-%08lx %s
\n
"
,
get_module_type
(
type
,
virtual
),
mod_addr
,
mod_addr
+
size
,
TRACE
(
"=> %s %s-%s %s
\n
"
,
get_module_type
(
type
,
virtual
),
wine_dbgstr_longlong
(
mod_addr
),
wine_dbgstr_longlong
(
mod_addr
+
size
),
debugstr_w
(
name
));
pool_init
(
&
module
->
pool
,
65536
);
...
...
@@ -373,7 +374,7 @@ struct module* module_find_by_addr(const struct process* pcs, unsigned long addr
* already loaded
*/
static
BOOL
module_is_container_loaded
(
const
struct
process
*
pcs
,
const
WCHAR
*
ImageName
,
DWORD
base
)
const
WCHAR
*
ImageName
,
DWORD
64
base
)
{
size_t
len
;
struct
module
*
module
;
...
...
@@ -536,7 +537,7 @@ DWORD64 WINAPI SymLoadModuleExW(HANDLE hProcess, HANDLE hFile, PCWSTR wImageNam
{
if
(
!
wImageName
)
return
FALSE
;
module
=
module_new
(
pcs
,
wImageName
,
module_get_type_by_name
(
wImageName
),
TRUE
,
(
DWORD
)
BaseOfDll
,
SizeOfDll
,
0
,
0
);
TRUE
,
BaseOfDll
,
SizeOfDll
,
0
,
0
);
if
(
!
module
)
return
FALSE
;
if
(
wModuleName
)
module_set_module
(
module
,
wModuleName
);
module
->
module
.
SymType
=
SymVirtual
;
...
...
dlls/dbghelp/pe_module.c
View file @
c6eb8104
...
...
@@ -448,7 +448,7 @@ BOOL pe_load_nt_header(HANDLE hProc, DWORD64 base, IMAGE_NT_HEADERS* nth)
*
*/
struct
module
*
pe_load_builtin_module
(
struct
process
*
pcs
,
const
WCHAR
*
name
,
DWORD
base
,
DWORD
size
)
DWORD
64
base
,
DWORD64
size
)
{
struct
module
*
module
=
NULL
;
...
...
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