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
5c7c9546
Commit
5c7c9546
authored
Sep 27, 2013
by
Huw Davies
Committed by
Alexandre Julliard
Sep 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Skip the dllprefix when matching PE with ELF modules.
parent
8b21fefb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
Makefile.in
dlls/dbghelp/Makefile.in
+1
-1
module.c
dlls/dbghelp/module.c
+11
-0
No files found.
dlls/dbghelp/Makefile.in
View file @
5c7c9546
MODULE
=
dbghelp.dll
IMPORTLIB
=
dbghelp
EXTRADEFS
=
-D_IMAGEHLP_SOURCE_
EXTRADEFS
=
-D_IMAGEHLP_SOURCE_
-DDLLPREFIX
=
'"
$(DLLPREFIX)
"'
IMPORTS
=
psapi
DELAYIMPORTS
=
version
EXTRALIBS
=
@ZLIB@
...
...
dlls/dbghelp/module.c
View file @
5c7c9546
...
...
@@ -422,6 +422,16 @@ static BOOL module_is_container_loaded(const struct process* pcs,
size_t
len
;
struct
module
*
module
;
PCWSTR
filename
,
modname
;
static
WCHAR
*
dll_prefix
;
static
int
dll_prefix_len
;
if
(
!
dll_prefix
)
{
dll_prefix_len
=
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
DLLPREFIX
,
-
1
,
NULL
,
0
);
dll_prefix
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dll_prefix_len
*
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
DLLPREFIX
,
-
1
,
dll_prefix
,
dll_prefix_len
);
dll_prefix_len
--
;
}
if
(
!
base
)
return
FALSE
;
filename
=
get_filename
(
ImageName
,
NULL
);
...
...
@@ -434,6 +444,7 @@ static BOOL module_is_container_loaded(const struct process* pcs,
base
<
module
->
module
.
BaseOfImage
+
module
->
module
.
ImageSize
)
{
modname
=
get_filename
(
module
->
module
.
LoadedImageName
,
NULL
);
if
(
dll_prefix_len
&&
!
strncmpW
(
modname
,
dll_prefix
,
dll_prefix_len
))
modname
+=
dll_prefix_len
;
if
(
!
strncmpiW
(
modname
,
filename
,
len
)
&&
!
memcmp
(
modname
+
len
,
S_DotSoW
,
3
*
sizeof
(
WCHAR
)))
{
...
...
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