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
173c720e
Commit
173c720e
authored
Apr 24, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbgeng: Set module timestamp field.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3842fe5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
dbgeng.c
dlls/dbgeng/dbgeng.c
+17
-1
No files found.
dlls/dbgeng/dbgeng.c
View file @
173c720e
...
...
@@ -108,13 +108,28 @@ static WORD debug_target_get_module_machine(struct target_process *target, HMODU
ReadProcessMemory
(
target
->
handle
,
module
,
&
dos
,
sizeof
(
dos
),
NULL
);
if
(
dos
.
e_magic
==
IMAGE_DOS_SIGNATURE
)
{
ReadProcessMemory
(
target
->
handle
,
(
const
char
*
)
module
+
dos
.
e_lfanew
+
4
/* signature */
,
&
machine
,
ReadProcessMemory
(
target
->
handle
,
(
const
char
*
)
module
+
dos
.
e_lfanew
+
4
/*
PE
signature */
,
&
machine
,
sizeof
(
machine
),
NULL
);
}
return
machine
;
}
static
DWORD
debug_target_get_module_timestamp
(
struct
target_process
*
target
,
HMODULE
module
)
{
IMAGE_DOS_HEADER
dos
=
{
0
};
DWORD
timestamp
=
0
;
ReadProcessMemory
(
target
->
handle
,
module
,
&
dos
,
sizeof
(
dos
),
NULL
);
if
(
dos
.
e_magic
==
IMAGE_DOS_SIGNATURE
)
{
ReadProcessMemory
(
target
->
handle
,
(
const
char
*
)
module
+
dos
.
e_lfanew
+
4
/* PE signature */
+
FIELD_OFFSET
(
IMAGE_FILE_HEADER
,
TimeDateStamp
),
&
timestamp
,
sizeof
(
timestamp
),
NULL
);
}
return
timestamp
;
}
static
HRESULT
debug_target_init_modules_info
(
struct
target_process
*
target
)
{
unsigned
int
i
,
count
;
...
...
@@ -156,6 +171,7 @@ static HRESULT debug_target_init_modules_info(struct target_process *target)
target
->
modules
.
info
[
i
].
params
.
Base
=
(
ULONG_PTR
)
info
.
lpBaseOfDll
;
target
->
modules
.
info
[
i
].
params
.
Size
=
info
.
SizeOfImage
;
target
->
modules
.
info
[
i
].
params
.
TimeDateStamp
=
debug_target_get_module_timestamp
(
target
,
modules
[
i
]);
GetModuleFileNameExA
(
target
->
handle
,
modules
[
i
],
target
->
modules
.
info
[
i
].
image_name
,
ARRAY_SIZE
(
target
->
modules
.
info
[
i
].
image_name
));
...
...
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