Commit d9bf3b5c authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

inetcomm: Fully initialize start and length.

Should fix Valgrind warnings 'Conditional jump or move depends on uninitialised value(s)' in inetcomm tests.
parent 025457e0
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment