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
63d41a41
Commit
63d41a41
authored
Mar 23, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Rename helpers to make unicode variants default.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
062ce94f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
path.c
dlls/dbghelp/path.c
+12
-12
No files found.
dlls/dbghelp/path.c
View file @
63d41a41
...
...
@@ -31,22 +31,22 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dbghelp
);
static
inline
BOOL
is_sep
(
char
ch
)
{
return
ch
==
'/'
||
ch
==
'\\'
;}
static
inline
BOOL
is_sep
W
(
WCHAR
ch
)
{
return
ch
==
'/'
||
ch
==
'\\'
;}
static
inline
BOOL
is_sep
A
(
char
ch
)
{
return
ch
==
'/'
||
ch
==
'\\'
;}
static
inline
BOOL
is_sep
(
WCHAR
ch
)
{
return
ch
==
'/'
||
ch
==
'\\'
;}
static
inline
const
char
*
file_name
(
const
char
*
str
)
static
inline
const
char
*
file_name
A
(
const
char
*
str
)
{
const
char
*
p
;
for
(
p
=
str
+
strlen
(
str
)
-
1
;
p
>=
str
&&
!
is_sep
(
*
p
);
p
--
);
for
(
p
=
str
+
strlen
(
str
)
-
1
;
p
>=
str
&&
!
is_sep
A
(
*
p
);
p
--
);
return
p
+
1
;
}
static
inline
const
WCHAR
*
file_name
W
(
const
WCHAR
*
str
)
static
inline
const
WCHAR
*
file_name
(
const
WCHAR
*
str
)
{
const
WCHAR
*
p
;
for
(
p
=
str
+
strlenW
(
str
)
-
1
;
p
>=
str
&&
!
is_sep
W
(
*
p
);
p
--
);
for
(
p
=
str
+
strlenW
(
str
)
-
1
;
p
>=
str
&&
!
is_sep
(
*
p
);
p
--
);
return
p
+
1
;
}
...
...
@@ -54,7 +54,7 @@ static inline void file_pathW(const WCHAR *src, WCHAR *dst)
{
int
len
;
for
(
len
=
strlenW
(
src
)
-
1
;
(
len
>
0
)
&&
(
!
is_sep
W
(
src
[
len
]));
len
--
);
for
(
len
=
strlenW
(
src
)
-
1
;
(
len
>
0
)
&&
(
!
is_sep
(
src
[
len
]));
len
--
);
memcpy
(
dst
,
src
,
len
*
sizeof
(
WCHAR
)
);
dst
[
len
]
=
0
;
}
...
...
@@ -71,7 +71,7 @@ HANDLE WINAPI FindDebugInfoFile(PCSTR FileName, PCSTR SymbolPath, PSTR DebugFile
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
if
(
h
==
INVALID_HANDLE_VALUE
)
{
if
(
!
SearchPathA
(
SymbolPath
,
file_name
(
FileName
),
NULL
,
MAX_PATH
,
DebugFilePath
,
NULL
))
if
(
!
SearchPathA
(
SymbolPath
,
file_name
A
(
FileName
),
NULL
,
MAX_PATH
,
DebugFilePath
,
NULL
))
return
NULL
;
h
=
CreateFileA
(
DebugFilePath
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
...
...
@@ -181,7 +181,7 @@ BOOL WINAPI SymMatchFileNameW(PCWSTR file, PCWSTR match,
while
(
fptr
>=
file
&&
mptr
>=
match
)
{
if
(
toupperW
(
*
fptr
)
!=
toupperW
(
*
mptr
)
&&
!
(
is_sep
W
(
*
fptr
)
&&
is_sepW
(
*
mptr
)))
if
(
toupperW
(
*
fptr
)
!=
toupperW
(
*
mptr
)
&&
!
(
is_sep
(
*
fptr
)
&&
is_sep
(
*
mptr
)))
break
;
fptr
--
;
mptr
--
;
}
...
...
@@ -208,7 +208,7 @@ BOOL WINAPI SymMatchFileName(PCSTR file, PCSTR match,
while
(
fptr
>=
file
&&
mptr
>=
match
)
{
if
(
toupper
(
*
fptr
)
!=
toupper
(
*
mptr
)
&&
!
(
is_sep
(
*
fptr
)
&&
is_sep
(
*
mptr
)))
if
(
toupper
(
*
fptr
)
!=
toupper
(
*
mptr
)
&&
!
(
is_sep
A
(
*
fptr
)
&&
is_sepA
(
*
mptr
)))
break
;
fptr
--
;
mptr
--
;
}
...
...
@@ -385,7 +385,7 @@ BOOL WINAPI SymFindFileInPathW(HANDLE hProcess, PCWSTR searchPath, PCWSTR full_p
s
.
cb
=
cb
;
s
.
user
=
user
;
filename
=
file_name
W
(
full_path
);
filename
=
file_name
(
full_path
);
/* first check full path to file */
if
(
sffip_cb
(
full_path
,
&
s
))
...
...
@@ -642,7 +642,7 @@ BOOL path_find_symbol_file(const struct process* pcs, const struct module* modul
mf
.
matched
=
0
;
MultiByteToWideChar
(
CP_ACP
,
0
,
full_path
,
-
1
,
full_pathW
,
MAX_PATH
);
filename
=
file_name
W
(
full_pathW
);
filename
=
file_name
(
full_pathW
);
mf
.
kind
=
module_get_type_by_name
(
filename
);
*
is_unmatched
=
FALSE
;
...
...
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