[PATCH 0/1] MR9792: dbghelp: Don't crash when creating minidump without exception pointers.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56932 Signed-off-by: Eric Pouech <epouech@codeweavers.com> -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9792
From: Eric Pouech <epouech@codeweavers.com> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56932 Signed-off-by: Eric Pouech <epouech@codeweavers.com> --- dlls/dbghelp/minidump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/dbghelp/minidump.c b/dlls/dbghelp/minidump.c index f8d3e9e5c73..4c39b48f8b5 100644 --- a/dlls/dbghelp/minidump.c +++ b/dlls/dbghelp/minidump.c @@ -1068,7 +1068,7 @@ BOOL WINAPI MiniDumpWriteDump(HANDLE hProcess, DWORD pid, HANDLE hFile, dc.num_mem64 = 0; dc.alloc_mem64 = 0; dc.rva = 0; - dc.except_param = ExceptionParam; + dc.except_param = (ExceptionParam && ExceptionParam->ExceptionPointers) ? ExceptionParam : NULL; dc.user_stream = UserStreamParam; /* have a dedicated thread for fetching info on self */ -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9792
participants (2)
-
Eric Pouech -
eric pouech (@epo)