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
d6fadb88
Commit
d6fadb88
authored
Oct 31, 2011
by
André Hentschel
Committed by
Alexandre Julliard
Nov 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Implement SymMatchStringW.
parent
7e3fe197
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
1 deletion
+30
-1
dbghelp.spec
dlls/dbghelp/dbghelp.spec
+1
-1
symbol.c
dlls/dbghelp/symbol.c
+29
-0
No files found.
dlls/dbghelp/dbghelp.spec
View file @
d6fadb88
...
...
@@ -139,7 +139,7 @@
@ stdcall SymMatchFileNameW(wstr wstr ptr ptr)
@ stdcall SymMatchString(str str long) SymMatchStringA
@ stdcall SymMatchStringA(str str long)
@ st
ub SymMatchStringW
@ st
dcall SymMatchStringW(wstr wstr long)
@ stub SymNext
@ stub SymNextW
@ stub SymPrev
...
...
dlls/dbghelp/symbol.c
View file @
d6fadb88
...
...
@@ -1891,6 +1891,35 @@ BOOL WINAPI SymMatchStringA(PCSTR string, PCSTR re, BOOL _case)
}
/******************************************************************
* SymMatchStringW (DBGHELP.@)
*
* FIXME: SymMatchStringA should convert and pass the strings to SymMatchStringW,
* but that needs a unicode RE library.
*/
BOOL
WINAPI
SymMatchStringW
(
PCWSTR
string
,
PCWSTR
re
,
BOOL
_case
)
{
BOOL
ret
;
LPSTR
s
,
r
;
DWORD
len
;
TRACE
(
"%s %s %c
\n
"
,
debugstr_w
(
string
),
debugstr_w
(
re
),
_case
?
'Y'
:
'N'
);
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
string
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
s
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
WideCharToMultiByte
(
CP_ACP
,
0
,
string
,
-
1
,
s
,
len
,
NULL
,
NULL
);
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
re
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
r
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
WideCharToMultiByte
(
CP_ACP
,
0
,
re
,
-
1
,
r
,
len
,
NULL
,
NULL
);
ret
=
SymMatchStringA
(
s
,
r
,
_case
);
HeapFree
(
GetProcessHeap
(),
0
,
r
);
HeapFree
(
GetProcessHeap
(),
0
,
s
);
return
ret
;
}
/******************************************************************
* SymSearch (DBGHELP.@)
*/
BOOL
WINAPI
SymSearch
(
HANDLE
hProcess
,
ULONG64
BaseOfDll
,
DWORD
Index
,
...
...
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