Eric Pouech : dbghelp: Fix the threads stream size.
Alexandre Julliard
julliard at winehq.org
Fri Nov 13 09:37:08 CST 2009
Module: wine
Branch: master
Commit: aa9002755a6ee074e99cdb122126071faebf8ede
URL: http://source.winehq.org/git/wine.git/?a=commit;h=aa9002755a6ee074e99cdb122126071faebf8ede
Author: Eric Pouech <eric.pouech at orange.fr>
Date: Fri Nov 13 13:18:12 2009 +0100
dbghelp: Fix the threads stream size.
---
dlls/dbghelp/minidump.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/dlls/dbghelp/minidump.c b/dlls/dbghelp/minidump.c
index a2f1633..1f165a8 100644
--- a/dlls/dbghelp/minidump.c
+++ b/dlls/dbghelp/minidump.c
@@ -723,7 +723,7 @@ static unsigned dump_threads(struct dump_context* dc,
{
MINIDUMP_THREAD mdThd;
MINIDUMP_THREAD_LIST mdThdList;
- unsigned i;
+ unsigned i, sz;
RVA rva_base;
DWORD flags_out;
CONTEXT ctx;
@@ -731,8 +731,7 @@ static unsigned dump_threads(struct dump_context* dc,
mdThdList.NumberOfThreads = 0;
rva_base = dc->rva;
- dc->rva += sizeof(mdThdList.NumberOfThreads) +
- dc->spi->dwThreadCount * sizeof(mdThd);
+ dc->rva += sz = sizeof(mdThdList.NumberOfThreads) + dc->spi->dwThreadCount * sizeof(mdThd);
for (i = 0; i < dc->spi->dwThreadCount; i++)
{
@@ -800,7 +799,7 @@ static unsigned dump_threads(struct dump_context* dc,
writeat(dc, rva_base,
&mdThdList.NumberOfThreads, sizeof(mdThdList.NumberOfThreads));
- return dc->rva - rva_base;
+ return sz;
}
/******************************************************************
More information about the wine-cvs
mailing list