dbghelp: Fixed the suspend count when creating a minidump in the middle of an exception.

This commit is contained in:
Eric Pouech 2008-01-27 19:04:04 +01:00 committed by Alexandre Julliard
parent ecdbae7ceb
commit 04c0ffdc47
1 changed files with 2 additions and 0 deletions

View File

@ -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);