Commit 9c01a94b authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

inetcomm: Use relative seek in copy_headers_to_buf.

parent dd3c58c4
......@@ -532,8 +532,8 @@ static HRESULT copy_headers_to_buf(IStream *stm, char **ptr)
if(new_end - last_end == 2)
{
LARGE_INTEGER off;
off.QuadPart = new_end;
IStream_Seek(stm, off, STREAM_SEEK_SET, NULL);
off.QuadPart = (LONGLONG)new_end - offset;
IStream_Seek(stm, off, STREAM_SEEK_CUR, NULL);
buf[new_end] = '\0';
done = TRUE;
}
......
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