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:
parent
dd3c58c497
commit
9c01a94b7b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue