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
c25d3ac7
Commit
c25d3ac7
authored
May 10, 2006
by
Eric Pouech
Committed by
Alexandre Julliard
May 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Implemented SymSearchW.
parent
208e701a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
1 deletion
+37
-1
dbghelp.spec
dlls/dbghelp/dbghelp.spec
+1
-1
symbol.c
dlls/dbghelp/symbol.c
+35
-0
dbghelp.h
include/dbghelp.h
+1
-0
No files found.
dlls/dbghelp/dbghelp.spec
View file @
c25d3ac7
...
...
@@ -134,7 +134,7 @@
@ stdcall SymRegisterFunctionEntryCallback(ptr ptr ptr)
@ stdcall SymRegisterFunctionEntryCallback64(ptr ptr double)
@ stdcall SymSearch(long double long long str double ptr ptr long)
@ st
ub SymSearchW
@ st
dcall SymSearchW(long double long long wstr double ptr ptr long)
@ stdcall SymSetContext(long ptr ptr)
@ stub SymSetHomeDirectory
@ stub SymSetHomeDirectoryW
...
...
dlls/dbghelp/symbol.c
View file @
c25d3ac7
...
...
@@ -1538,3 +1538,38 @@ BOOL WINAPI SymSearch(HANDLE hProcess, ULONG64 BaseOfDll, DWORD Index,
return
sym_enum
(
hProcess
,
BaseOfDll
,
Mask
,
&
se
);
}
/******************************************************************
* SymSearchW (DBGHELP.@)
*/
BOOL
WINAPI
SymSearchW
(
HANDLE
hProcess
,
ULONG64
BaseOfDll
,
DWORD
Index
,
DWORD
SymTag
,
PCWSTR
Mask
,
DWORD64
Address
,
PSYM_ENUMERATESYMBOLS_CALLBACKW
EnumSymbolsCallback
,
PVOID
UserContext
,
DWORD
Options
)
{
struct
sym_enumW
sew
;
BOOL
ret
=
FALSE
;
char
*
maskA
=
NULL
;
TRACE
(
"(%p %s %lu %lu %s %s %p %p %lx)
\n
"
,
hProcess
,
wine_dbgstr_longlong
(
BaseOfDll
),
Index
,
SymTag
,
debugstr_w
(
Mask
),
wine_dbgstr_longlong
(
Address
),
EnumSymbolsCallback
,
UserContext
,
Options
);
sew
.
ctx
=
UserContext
;
sew
.
cb
=
EnumSymbolsCallback
;
sew
.
sym_info
=
(
PSYMBOL_INFOW
)
sew
.
buffer
;
if
(
Mask
)
{
unsigned
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
Mask
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
maskA
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
if
(
!
maskA
)
return
FALSE
;
WideCharToMultiByte
(
CP_ACP
,
0
,
Mask
,
-
1
,
maskA
,
len
,
NULL
,
NULL
);
}
ret
=
SymSearch
(
hProcess
,
BaseOfDll
,
Index
,
SymTag
,
maskA
,
Address
,
sym_enumW
,
&
sew
,
Options
);
HeapFree
(
GetProcessHeap
(),
0
,
maskA
);
return
ret
;
}
include/dbghelp.h
View file @
c25d3ac7
...
...
@@ -942,6 +942,7 @@ DWORD WINAPI UnDecorateSymbolName(LPCSTR, LPSTR, DWORD, DWORD);
BOOL
WINAPI
SymMatchString
(
PCSTR
,
PCSTR
,
BOOL
);
BOOL
WINAPI
SymMatchStringW
(
PCWSTR
,
PCWSTR
,
BOOL
);
BOOL
WINAPI
SymSearch
(
HANDLE
,
ULONG64
,
DWORD
,
DWORD
,
PCSTR
,
DWORD64
,
PSYM_ENUMERATESYMBOLS_CALLBACK
,
PVOID
,
DWORD
);
BOOL
WINAPI
SymSearchW
(
HANDLE
,
ULONG64
,
DWORD
,
DWORD
,
PCWSTR
,
DWORD64
,
PSYM_ENUMERATESYMBOLS_CALLBACKW
,
PVOID
,
DWORD
);
DWORD
WINAPI
UnDecorateSymbolName
(
PCSTR
,
PSTR
,
DWORD
,
DWORD
);
BOOL
WINAPI
SymGetScope
(
HANDLE
,
ULONG64
,
DWORD
,
PSYMBOL_INFO
);
BOOL
WINAPI
SymFromIndex
(
HANDLE
,
ULONG64
,
DWORD
,
PSYMBOL_INFO
);
...
...
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