inetcomm: Use relative seek in copy_headers_to_buf.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2017-01-31 11:46:15 +01:00 committed by Alexandre Julliard
parent dd3c58c497
commit 9c01a94b7b
1 changed files with 2 additions and 2 deletions

View File

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