From 76e98f8b86a041df8e56cc89528f8080e0a40820 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Sat, 11 Sep 2010 19:19:34 -0500 Subject: [PATCH] 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)) { -- 1.6.3.3