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
838de56e
Commit
838de56e
authored
Mar 17, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Lookup real image paths in image_locate_debug_link.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2642f43e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
module.c
dlls/dbghelp/module.c
+11
-0
No files found.
dlls/dbghelp/module.c
View file @
838de56e
...
...
@@ -606,6 +606,7 @@ static BOOL image_locate_debug_link(const struct module* module, struct image_fi
filename_len
=
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
filename
,
-
1
,
NULL
,
0
);
path_len
=
strlenW
(
module
->
module
.
LoadedImageName
);
if
(
module
->
real_path
)
path_len
=
max
(
path_len
,
strlenW
(
module
->
real_path
));
p
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
globalDebugDirLen
+
path_len
+
6
+
1
+
filename_len
+
1
)
*
sizeof
(
WCHAR
));
if
(
!
p
)
goto
found
;
...
...
@@ -625,6 +626,16 @@ static BOOL image_locate_debug_link(const struct module* module, struct image_fi
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
filename
,
-
1
,
slash
+
ARRAY_SIZE
(
dotDebugW
),
filename_len
);
if
(
image_check_debug_link
(
p
,
fmap_link
,
crc
))
goto
found
;
if
(
module
->
real_path
)
{
strcpyW
(
p
,
module
->
real_path
);
slash
=
p
;
if
((
slash2
=
strrchrW
(
slash
,
'/'
)))
slash
=
slash2
+
1
;
if
((
slash2
=
strrchrW
(
slash
,
'\\'
)))
slash
=
slash2
+
1
;
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
filename
,
-
1
,
slash
,
filename_len
);
if
(
image_check_debug_link
(
p
,
fmap_link
,
crc
))
goto
found
;
}
/* testing globaldebugdir/execdir/filename */
memmove
(
p
+
globalDebugDirLen
,
p
,
(
slash
-
p
)
*
sizeof
(
WCHAR
));
memcpy
(
p
,
globalDebugDirW
,
globalDebugDirLen
*
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