From c696282069faa88c486abdffbca6a5255102f4d8 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Thu, 8 Mar 2012 13:46:03 +0100 Subject: WaE: variable 'hr' set but not used --- shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'shell/source/win32/shlxthandler/ooofilt') diff --git a/shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx b/shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx index f89a044619e4..54409ebd631e 100644 --- a/shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx +++ b/shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx @@ -57,12 +57,11 @@ IStream* PrepareIStream( IStream* pStream, zlib_filefunc_def &zFileFunc ) // These next few lines work around the "Seek pointer" bug found on Vista. char cBuf[20]; unsigned long nCount; - HRESULT hr; ULARGE_INTEGER nNewPosition; LARGE_INTEGER nMove; nMove.QuadPart = 0; - hr = pStream->Seek( nMove, STREAM_SEEK_SET, &nNewPosition ); - hr = pStream->Read( cBuf, 20, &nCount ); + pStream->Seek( nMove, STREAM_SEEK_SET, &nNewPosition ); + pStream->Read( cBuf, 20, &nCount ); fill_stream_filefunc( &zFileFunc ); zFileFunc.opaque = (void*)pStream; -- cgit