Commit 9a1a849b authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp: Add stub implementation of SymFromInlineContext(W).

parent bef7e1f2
......@@ -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
......
......@@ -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;
}
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