Module: wine Branch: master Commit: 72bd534908a62d974d953dcb93686a1de3972224 URL: http://source.winehq.org/git/wine.git/?a=commit;h=72bd534908a62d974d953dcb93...
Author: Vincent Povirk vincent@codeweavers.com Date: Sat Sep 11 19:19:34 2010 -0500
windowscodecs: Fix the seeking in stream region streams.
---
dlls/windowscodecs/stream.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/windowscodecs/stream.c b/dlls/windowscodecs/stream.c index a00f666..d43cfd8 100644 --- a/dlls/windowscodecs/stream.c +++ b/dlls/windowscodecs/stream.c @@ -341,7 +341,7 @@ static HRESULT WINAPI StreamOnStreamRange_Read(IStream *iface, if (SUCCEEDED(hr)) { SetPosition.QuadPart = This->pos.QuadPart + This->offset.QuadPart; - hr = IStream_Seek(This->stream, SetPosition, STREAM_SEEK_CUR, NULL); + hr = IStream_Seek(This->stream, SetPosition, STREAM_SEEK_SET, NULL); } if (SUCCEEDED(hr)) { @@ -384,7 +384,7 @@ static HRESULT WINAPI StreamOnStreamRange_Write(IStream *iface, if (SUCCEEDED(hr)) { SetPosition.QuadPart = This->pos.QuadPart + This->offset.QuadPart; - hr = IStream_Seek(This->stream, SetPosition, STREAM_SEEK_CUR, NULL); + hr = IStream_Seek(This->stream, SetPosition, STREAM_SEEK_SET, NULL); } if (SUCCEEDED(hr)) {