Huw Davies : inetcomm: Fully initialize start and length.

Alexandre Julliard julliard at winehq.org
Sat Jun 21 05:38:44 CDT 2008


Module: wine
Branch: master
Commit: d9bf3b5c4a83d331b1ed71cf5c3425ee3f789157
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d9bf3b5c4a83d331b1ed71cf5c3425ee3f789157

Author: Huw Davies <huw at codeweavers.com>
Date:   Mon Jun  9 11:37:23 2008 +0100

inetcomm: Fully initialize start and length.

Should fix Valgrind warnings 'Conditional jump or move depends on
uninitialised value(s)' in inetcomm tests.

---

 dlls/inetcomm/mimeole.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/inetcomm/mimeole.c b/dlls/inetcomm/mimeole.c
index ee03e92..7e9d709 100644
--- a/dlls/inetcomm/mimeole.c
+++ b/dlls/inetcomm/mimeole.c
@@ -1629,8 +1629,8 @@ static body_t *create_sub_body(MimeMessage *msg, IStream *pStm, BODYOFFSETS *off
                     IStream *sub_stream;
                     ULARGE_INTEGER start, length;
 
-                    start.u.LowPart = cur->offsets.cbHeaderStart;
-                    length.u.LowPart = cur->offsets.cbBodyEnd - cur->offsets.cbHeaderStart;
+                    start.QuadPart = cur->offsets.cbHeaderStart;
+                    length.QuadPart = cur->offsets.cbBodyEnd - cur->offsets.cbHeaderStart;
                     create_sub_stream(pStm, start, length, &sub_stream);
                     sub_body = create_sub_body(msg, sub_stream, &cur->offsets, body);
                     IStream_Release(sub_stream);




More information about the wine-cvs mailing list