[PATCH 2/4] [DbgHelp]: fixed the suspend count when creating a minidump in the middle of an exception
Eric Pouech
eric.pouech at orange.fr
Sun Jan 27 12:04:04 CST 2008
A+
---
dlls/dbghelp/minidump.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/dbghelp/minidump.c b/dlls/dbghelp/minidump.c
index d7dddea..300a5a0 100644
--- a/dlls/dbghelp/minidump.c
+++ b/dlls/dbghelp/minidump.c
@@ -222,6 +222,7 @@ static BOOL fetch_thread_info(struct dump_context* dc, int thd_idx,
else if (tid == GetCurrentThreadId() && except)
{
CONTEXT lctx, *pctx;
+ mdThd->SuspendCount = 1;
if (except->ClientPointers)
{
EXCEPTION_POINTERS ep;
@@ -237,6 +238,7 @@ static BOOL fetch_thread_info(struct dump_context* dc, int thd_idx,
memcpy(ctx, pctx, sizeof(*ctx));
fetch_thread_stack(dc, tbi.TebBaseAddress, pctx, &mdThd->Stack);
}
+ else mdThd->SuspendCount = 0;
}
}
CloseHandle(hThread);
More information about the wine-patches
mailing list