Jacek Caban : inetcomm: Don' t restore base stream position in sub stream Read.

Alexandre Julliard julliard at winehq.org
Mon Jan 30 15:39:16 CST 2017


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Fri Jan 27 15:59:21 2017 +0100

inetcomm: Don't restore base stream position in sub stream Read.

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

---

 dlls/inetcomm/mimeole.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/dlls/inetcomm/mimeole.c b/dlls/inetcomm/mimeole.c
index c06b740..74b834c 100644
--- a/dlls/inetcomm/mimeole.c
+++ b/dlls/inetcomm/mimeole.c
@@ -230,13 +230,10 @@ static HRESULT WINAPI sub_stream_Read(
 {
     sub_stream_t *This = impl_from_IStream(iface);
     HRESULT hr;
-    ULARGE_INTEGER base_pos;
     LARGE_INTEGER tmp_pos;
 
     TRACE("(%p, %d, %p)\n", pv, cb, pcbRead);
 
-    tmp_pos.QuadPart = 0;
-    IStream_Seek(This->base, tmp_pos, STREAM_SEEK_CUR, &base_pos);
     tmp_pos.QuadPart = This->pos.QuadPart + This->start.QuadPart;
     IStream_Seek(This->base, tmp_pos, STREAM_SEEK_SET, NULL);
 
@@ -247,9 +244,6 @@ static HRESULT WINAPI sub_stream_Read(
 
     This->pos.QuadPart += *pcbRead;
 
-    tmp_pos.QuadPart = base_pos.QuadPart;
-    IStream_Seek(This->base, tmp_pos, STREAM_SEEK_SET, NULL);
-
     return hr;
 }
 




More information about the wine-cvs mailing list