Eric Pouech : dbghelp: Let StackWalkEx() succeed even when inline mode is requested.

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


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

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

dbghelp: Let StackWalkEx() succeed even when inline mode is requested.

Fallback to regular StackWalk64() behavior.

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

---

 dlls/dbghelp/stack.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/dlls/dbghelp/stack.c b/dlls/dbghelp/stack.c
index 6c70fc805cb..a93c454036c 100644
--- a/dlls/dbghelp/stack.c
+++ b/dlls/dbghelp/stack.c
@@ -298,9 +298,13 @@ BOOL WINAPI StackWalkEx(DWORD MachineType, HANDLE hProcess, HANDLE hThread,
     }
     if (frame->InlineFrameContext != INLINE_FRAME_CONTEXT_IGNORE)
     {
-        FIXME("Inlined contexts are not supported yet\n");
-        SetLastError(ERROR_INVALID_PARAMETER);
-        return FALSE;
+        static BOOL once;
+        if (!once)
+        {
+            FIXME("Inlined contexts are not supported yet\n");
+            once = TRUE;
+        }
+        frame->InlineFrameContext = INLINE_FRAME_CONTEXT_IGNORE;
     }
 
     csw.hProcess = hProcess;




More information about the wine-cvs mailing list