Jacek Caban : inetcomm: Use relative seek in copy_headers_to_buf.

Alexandre Julliard julliard at winehq.org
Tue Jan 31 15:42:51 CST 2017


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Tue Jan 31 11:46:15 2017 +0100

inetcomm: Use relative seek in copy_headers_to_buf.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/dlls/inetcomm/mimeole.c b/dlls/inetcomm/mimeole.c
index 90a5dd4..1471f99 100644
--- a/dlls/inetcomm/mimeole.c
+++ b/dlls/inetcomm/mimeole.c
@@ -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;
             }




More information about the wine-cvs mailing list