Eric Pouech : dbghelp: Implement SymSetScopeFromInlineContext() when context isn't inlined.

Alexandre Julliard julliard at winehq.org
Wed Oct 27 16:26:04 CDT 2021


Module: wine
Branch: master
Commit: 8592e9088fc4af8045ebaac13aea75ae96d0289f
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=8592e9088fc4af8045ebaac13aea75ae96d0289f

Author: Eric Pouech <eric.pouech at gmail.com>
Date:   Tue Oct 26 11:45:50 2021 +0200

dbghelp: Implement SymSetScopeFromInlineContext() when context isn't inlined.

Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dbghelp/dbghelp.c | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/dlls/dbghelp/dbghelp.c b/dlls/dbghelp/dbghelp.c
index eb0977dff36..0b1e20e93c0 100644
--- a/dlls/dbghelp/dbghelp.c
+++ b/dlls/dbghelp/dbghelp.c
@@ -677,12 +677,17 @@ BOOL WINAPI SymSetScopeFromIndex(HANDLE hProcess, ULONG64 addr, DWORD index)
  */
 BOOL WINAPI SymSetScopeFromInlineContext(HANDLE hProcess, ULONG64 addr, DWORD inlinectx)
 {
-    struct process*     pcs;
-
-    FIXME("(%p %#I64x %u): stub\n", hProcess, addr, inlinectx);
+    TRACE("(%p %I64x %x)\n", hProcess, addr, inlinectx);
 
-    if (!(pcs = process_find_by_handle(hProcess))) return FALSE;
-    return TRUE;
+    switch (IFC_MODE(inlinectx))
+    {
+    case IFC_MODE_IGNORE:
+    case IFC_MODE_REGULAR: return SymSetScopeFromAddr(hProcess, addr);
+    case IFC_MODE_INLINE:
+    default:
+        SetLastError(ERROR_INVALID_PARAMETER);
+        return FALSE;
+    }
 }
 
 /******************************************************************




More information about the wine-cvs mailing list