diff options
author | David Tardon <dtardon@redhat.com> | 2012-03-08 13:46:03 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-03-12 08:53:46 +0100 |
commit | c696282069faa88c486abdffbca6a5255102f4d8 (patch) | |
tree | 23a509877d96348b9738812376f96d791f0b18c2 /shell | |
parent | suppress errors with -Werror (diff) | |
download | core-c696282069faa88c486abdffbca6a5255102f4d8.tar.gz core-c696282069faa88c486abdffbca6a5255102f4d8.zip |
WaE: variable 'hr' set but not used
Diffstat (limited to 'shell')
-rw-r--r-- | shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
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; |