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
7b81ea47
Commit
7b81ea47
authored
Jan 27, 2008
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Store the PE version information in module block.
parent
8e45b074
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletion
+24
-1
Makefile.in
dlls/dbghelp/Makefile.in
+1
-0
minidump.c
dlls/dbghelp/minidump.c
+23
-1
No files found.
dlls/dbghelp/Makefile.in
View file @
7b81ea47
...
...
@@ -5,6 +5,7 @@ VPATH = @srcdir@
MODULE
=
dbghelp.dll
IMPORTLIB
=
libdbghelp.
$(IMPLIBEXT)
IMPORTS
=
psapi kernel32 ntdll
DELAYIMPORTS
=
version
C_SRCS
=
\
coff.c
\
...
...
dlls/dbghelp/minidump.c
View file @
7b81ea47
...
...
@@ -329,6 +329,28 @@ static void fetch_modules_info(struct dump_context* dc)
elf_enum_modules
(
dc
->
hProcess
,
fetch_elf_module_info_cb
,
dc
);
}
static
void
fetch_module_versioninfo
(
LPCWSTR
filename
,
VS_FIXEDFILEINFO
*
ffi
)
{
DWORD
handle
;
DWORD
sz
;
static
const
WCHAR
backslashW
[]
=
{
'\\'
,
'\0'
};
memset
(
ffi
,
0
,
sizeof
(
*
ffi
));
if
((
sz
=
GetFileVersionInfoSizeW
(
filename
,
&
handle
)))
{
void
*
info
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sz
);
if
(
info
&&
GetFileVersionInfoW
(
filename
,
handle
,
sz
,
info
))
{
VS_FIXEDFILEINFO
*
ptr
;
UINT
len
;
if
(
VerQueryValueW
(
info
,
backslashW
,
(
void
*
)
&
ptr
,
&
len
))
memcpy
(
ffi
,
ptr
,
min
(
len
,
sizeof
(
*
ffi
)));
}
HeapFree
(
GetProcessHeap
(),
0
,
info
);
}
}
/******************************************************************
* add_memory_block
*
...
...
@@ -515,7 +537,7 @@ static unsigned dump_modules(struct dump_context* dc, BOOL dump_elf)
mdModule
.
ModuleNameRva
=
dc
->
rva
;
ms
->
Length
-=
sizeof
(
WCHAR
);
append
(
dc
,
ms
,
sizeof
(
ULONG
)
+
ms
->
Length
+
sizeof
(
WCHAR
));
memset
(
&
mdModule
.
VersionInfo
,
0
,
sizeof
(
mdModule
.
VersionInfo
));
/* FIXME */
fetch_module_versioninfo
(
ms
->
Buffer
,
&
mdModule
.
VersionInfo
);
mdModule
.
CvRecord
.
DataSize
=
0
;
/* FIXME */
mdModule
.
CvRecord
.
Rva
=
0
;
/* FIXME */
mdModule
.
MiscRecord
.
DataSize
=
0
;
/* FIXME */
...
...
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