package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
759 B
20 lines
759 B
3 years ago
|
diff --git a/CPP/7zip/Common/OffsetStream.cpp b/CPP/7zip/Common/OffsetStream.cpp
|
||
|
index b3e710f..b16124c 100644
|
||
|
--- a/CPP/7zip/Common/OffsetStream.cpp
|
||
|
+++ b/CPP/7zip/Common/OffsetStream.cpp
|
||
|
@@ -20,13 +20,13 @@ STDMETHODIMP COffsetOutStream::Write(const void *data, UInt32 size, UInt32 *proc
|
||
|
|
||
|
STDMETHODIMP COffsetOutStream::Seek(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition)
|
||
|
{
|
||
|
- UInt64 absoluteNewPosition;
|
||
|
if (seekOrigin == STREAM_SEEK_SET)
|
||
|
{
|
||
|
if (offset < 0)
|
||
|
return HRESULT_WIN32_ERROR_NEGATIVE_SEEK;
|
||
|
offset += _offset;
|
||
|
}
|
||
|
+ UInt64 absoluteNewPosition = 0; // =0 for gcc-10
|
||
|
HRESULT result = _stream->Seek(offset, seekOrigin, &absoluteNewPosition);
|
||
|
if (newPosition)
|
||
|
*newPosition = absoluteNewPosition - _offset;
|