Module: wine Branch: master Commit: 04c0ffdc4791faacb80e98cccdda2ed19ee764fe URL: http://source.winehq.org/git/wine.git/?a=commit;h=04c0ffdc4791faacb80e98cccd...
Author: Eric Pouech eric.pouech@orange.fr Date: Sun Jan 27 19:04:04 2008 +0100
dbghelp: Fixed the suspend count when creating a minidump in the middle of an exception.
---
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);