Commit d6fadb88 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

dbghelp: Implement SymMatchStringW.

parent 7e3fe197
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
@ stdcall SymMatchFileNameW(wstr wstr ptr ptr) @ stdcall SymMatchFileNameW(wstr wstr ptr ptr)
@ stdcall SymMatchString(str str long) SymMatchStringA @ stdcall SymMatchString(str str long) SymMatchStringA
@ stdcall SymMatchStringA(str str long) @ stdcall SymMatchStringA(str str long)
@ stub SymMatchStringW @ stdcall SymMatchStringW(wstr wstr long)
@ stub SymNext @ stub SymNext
@ stub SymNextW @ stub SymNextW
@ stub SymPrev @ stub SymPrev
......
...@@ -1891,6 +1891,35 @@ BOOL WINAPI SymMatchStringA(PCSTR string, PCSTR re, BOOL _case) ...@@ -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.@) * SymSearch (DBGHELP.@)
*/ */
BOOL WINAPI SymSearch(HANDLE hProcess, ULONG64 BaseOfDll, DWORD Index, BOOL WINAPI SymSearch(HANDLE hProcess, ULONG64 BaseOfDll, DWORD Index,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment