dbghelp: Add stub implementation of SymFromInlineContext(W).

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2021-10-19 15:51:24 +02:00 committed by Alexandre Julliard
parent bef7e1f202
commit 9a1a849b95
2 changed files with 39 additions and 2 deletions

View File

@ -77,8 +77,8 @@
@ stdcall SymFromAddrW(ptr int64 ptr ptr)
@ stdcall SymFromIndex(long int64 long ptr)
@ stdcall SymFromIndexW(long int64 long ptr)
@ stub SymFromInlineContext
@ stub SymFromInlineContextW
@ stdcall SymFromInlineContext(long int64 long ptr ptr)
@ stdcall SymFromInlineContextW(long int64 long ptr ptr)
@ stdcall SymFromName(long str ptr)
@ stdcall SymFromNameW(long wstr ptr)
@ stub SymFromToken

View File

@ -2503,3 +2503,40 @@ PWSTR WINAPI SymSetHomeDirectoryW(HANDLE hProcess, PCWSTR dir)
return NULL;
}
/******************************************************************
* SymFromInlineContext (DBGHELP.@)
*
*/
BOOL WINAPI SymFromInlineContext(HANDLE hProcess, DWORD64 addr, ULONG inline_ctx, PDWORD64 disp, PSYMBOL_INFO si)
{
FIXME("(%p, %#I64x, 0x%x, %p, %p): stub\n", hProcess, addr, inline_ctx, disp, si);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
/******************************************************************
* SymFromInlineContextW (DBGHELP.@)
*
*/
BOOL WINAPI SymFromInlineContextW(HANDLE hProcess, DWORD64 addr, ULONG inline_ctx, PDWORD64 disp, PSYMBOL_INFOW siW)
{
PSYMBOL_INFO si;
unsigned len;
BOOL ret;
TRACE("(%p, %#I64x, 0x%x, %p, %p)\n", hProcess, addr, inline_ctx, disp, siW);
len = sizeof(*si) + siW->MaxNameLen * sizeof(WCHAR);
si = HeapAlloc(GetProcessHeap(), 0, len);
if (!si) return FALSE;
si->SizeOfStruct = sizeof(*si);
si->MaxNameLen = siW->MaxNameLen;
if ((ret = SymFromInlineContext(hProcess, addr, inline_ctx, disp, si)))
{
copy_symbolW(siW, si);
}
HeapFree(GetProcessHeap(), 0, si);
return ret;
}