Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
e1b28a9c
Commit
e1b28a9c
authored
Mar 16, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Support Windows paths in elf_locate_debug_link.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a5a6b0dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
elf_module.c
dlls/dbghelp/elf_module.c
+7
-4
No files found.
dlls/dbghelp/elf_module.c
View file @
e1b28a9c
...
...
@@ -1010,23 +1010,26 @@ static BOOL elf_locate_debug_link(struct image_file_map* fmap, const char* filen
static
const
WCHAR
globalDebugDirW
[]
=
{
'/'
,
'u'
,
's'
,
'r'
,
'/'
,
'l'
,
'i'
,
'b'
,
'/'
,
'd'
,
'e'
,
'b'
,
'u'
,
'g'
,
'/'
};
static
const
WCHAR
dotDebugW
[]
=
{
'.'
,
'd'
,
'e'
,
'b'
,
'u'
,
'g'
,
'/'
};
const
size_t
globalDebugDirLen
=
ARRAY_SIZE
(
globalDebugDirW
);
size_t
filename_len
;
size_t
filename_len
,
path_len
;
WCHAR
*
p
=
NULL
;
WCHAR
*
slash
;
WCHAR
*
slash2
;
struct
image_file_map
*
fmap_link
=
NULL
;
fmap_link
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
fmap_link
));
if
(
!
fmap_link
)
return
FALSE
;
filename_len
=
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
filename
,
-
1
,
NULL
,
0
);
path_len
=
strlenW
(
loaded_file
);
p
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
globalDebugDirLen
+
strlenW
(
loaded_file
)
+
6
+
1
+
filename_len
+
1
)
*
sizeof
(
WCHAR
));
(
globalDebugDirLen
+
path_len
+
6
+
1
+
filename_len
+
1
)
*
sizeof
(
WCHAR
));
if
(
!
p
)
goto
found
;
/* we prebuild the string with "execdir" */
strcpyW
(
p
,
loaded_file
);
slash
=
strrchrW
(
p
,
'/'
);
if
(
slash
==
NULL
)
slash
=
p
;
else
slash
++
;
slash
=
p
;
if
((
slash2
=
strrchrW
(
slash
,
'/'
)))
slash
=
slash2
+
1
;
if
((
slash2
=
strrchrW
(
slash
,
'\\'
)))
slash
=
slash2
+
1
;
/* testing execdir/filename */
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
filename
,
-
1
,
slash
,
filename_len
);
...
...
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