diff options
Diffstat (limited to 'CPP/7zip/UI/Common/ArchiveExtractCallback.h')
-rw-r--r-- | CPP/7zip/UI/Common/ArchiveExtractCallback.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/CPP/7zip/UI/Common/ArchiveExtractCallback.h b/CPP/7zip/UI/Common/ArchiveExtractCallback.h index 7d4155fe..058ddbcf 100644 --- a/CPP/7zip/UI/Common/ArchiveExtractCallback.h +++ b/CPP/7zip/UI/Common/ArchiveExtractCallback.h @@ -57,6 +57,8 @@ struct CExtractNtOptions bool ReplaceColonForAltStream; bool WriteToAltStreamIfColon; + bool PreAllocateOutFile; + CExtractNtOptions(): ReplaceColonForAltStream(false), WriteToAltStreamIfColon(false) @@ -64,6 +66,13 @@ struct CExtractNtOptions SymLinks.Val = true; HardLinks.Val = true; AltStreams.Val = true; + + PreAllocateOutFile = + #ifdef _WIN32 + true; + #else + false; + #endif } }; @@ -201,6 +210,7 @@ class CArchiveExtractCallback: UInt32 _index; UInt64 _curSize; bool _curSizeDefined; + bool _fileLengthWasSet; COutFileStream *_outFileStreamSpec; CMyComPtr<ISequentialOutStream> _outFileStream; |