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
8b861202
Commit
8b861202
authored
Feb 21, 2007
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Implemented SymMatchFileNameW.
parent
d707fe5a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
1 deletion
+31
-1
dbghelp.spec
dlls/dbghelp/dbghelp.spec
+1
-1
path.c
dlls/dbghelp/path.c
+29
-0
dbghelp.h
include/dbghelp.h
+1
-0
No files found.
dlls/dbghelp/dbghelp.spec
View file @
8b861202
...
...
@@ -119,7 +119,7 @@
@ stdcall SymLoadModuleEx(long long str str double long ptr long)
@ stdcall SymLoadModuleExW(long long wstr wstr double long ptr long)
@ stdcall SymMatchFileName(str str ptr ptr)
@ st
ub SymMatchFileNameW
@ st
dcall SymMatchFileNameW(wstr wstr ptr ptr)
@ stdcall SymMatchString(str str long)
@ stub SymMatchStringA
@ stub SymMatchStringW
...
...
dlls/dbghelp/path.c
View file @
8b861202
...
...
@@ -32,6 +32,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dbghelp
);
static
inline
BOOL
is_sep
(
char
ch
)
{
return
ch
==
'/'
||
ch
==
'\\'
;}
static
inline
BOOL
is_sepW
(
WCHAR
ch
)
{
return
ch
==
'/'
||
ch
==
'\\'
;}
static
inline
const
char
*
file_name
(
const
char
*
str
)
{
...
...
@@ -146,6 +147,34 @@ BOOL WINAPI MakeSureDirectoryPathExists(LPCSTR DirPath)
}
/******************************************************************
* SymMatchFileNameW (DBGHELP.@)
*
*/
BOOL
WINAPI
SymMatchFileNameW
(
WCHAR
*
file
,
WCHAR
*
match
,
WCHAR
**
filestop
,
WCHAR
**
matchstop
)
{
WCHAR
*
fptr
;
WCHAR
*
mptr
;
TRACE
(
"(%s %s %p %p)
\n
"
,
debugstr_w
(
file
),
debugstr_w
(
match
),
filestop
,
matchstop
);
fptr
=
file
+
strlenW
(
file
)
-
1
;
mptr
=
match
+
strlenW
(
match
)
-
1
;
while
(
fptr
>=
file
&&
mptr
>=
match
)
{
if
(
toupperW
(
*
fptr
)
!=
toupperW
(
*
mptr
)
&&
!
(
is_sepW
(
*
fptr
)
&&
is_sepW
(
*
mptr
)))
break
;
fptr
--
;
mptr
--
;
}
if
(
filestop
)
*
filestop
=
fptr
;
if
(
matchstop
)
*
matchstop
=
mptr
;
return
mptr
==
match
-
1
;
}
/******************************************************************
* SymMatchFileName (DBGHELP.@)
*
*/
...
...
include/dbghelp.h
View file @
8b861202
...
...
@@ -1023,6 +1023,7 @@ BOOL WINAPI SearchTreeForFile(PCSTR, PCSTR, PSTR);
typedef
BOOL
(
CALLBACK
*
PENUMDIRTREE_CALLBACK
)(
LPCSTR
,
PVOID
);
BOOL
WINAPI
EnumDirTree
(
HANDLE
,
PCSTR
,
PCSTR
,
PSTR
,
PENUMDIRTREE_CALLBACK
,
void
*
);
BOOL
WINAPI
SymMatchFileName
(
PSTR
,
PSTR
,
PSTR
*
,
PSTR
*
);
BOOL
WINAPI
SymMatchFileNameW
(
PWSTR
,
PWSTR
,
PWSTR
*
,
PWSTR
*
);
PCHAR
WINAPI
SymSetHomeDirectory
(
HANDLE
,
PCSTR
);
PCHAR
WINAPI
SymGetHomeDirectory
(
DWORD
,
PSTR
,
size_t
);
#define hdBase 0
...
...
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