Skip to content

Commit

Permalink
15.14
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Pavlov authored and kornelski committed May 27, 2016
1 parent 9608215 commit c20d013
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 14 deletions.
6 changes: 3 additions & 3 deletions C/7zVersion.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#define MY_VER_MAJOR 15
#define MY_VER_MINOR 13
#define MY_VER_MINOR 14
#define MY_VER_BUILD 0
#define MY_VERSION_NUMBERS "15.13"
#define MY_VERSION "15.13"
#define MY_VERSION_NUMBERS "15.14"
#define MY_VERSION "15.14"
#define MY_DATE "2015-12-31"
#undef MY_COPYRIGHT
#undef MY_VERSION_COPYRIGHT_DATE
Expand Down
13 changes: 6 additions & 7 deletions CPP/7zip/Archive/Cab/CabHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ class CFolderOutStream:
HRESULT FlushCorrupted(unsigned folderIndex);
HRESULT Unsupported();

bool NeedMoreWrite() const { return (m_FolderSize > m_PosInFolder); }
UInt64 GetRemain() const { return m_FolderSize - m_PosInFolder; }
UInt64 GetPosInFolder() const { return m_PosInFolder; }
};
Expand Down Expand Up @@ -831,9 +832,7 @@ STDMETHODIMP CFolderOutStream::Write(const void *data, UInt32 size, UInt32 *proc

HRESULT CFolderOutStream::FlushCorrupted(unsigned folderIndex)
{
UInt64 remain = GetRemain();

if (remain == 0)
if (!NeedMoreWrite())
{
CMyComPtr<IArchiveExtractCallbackMessage> callbackMessage;
m_ExtractCallback.QueryInterface(IID_IArchiveExtractCallbackMessage, &callbackMessage);
Expand All @@ -851,9 +850,9 @@ HRESULT CFolderOutStream::FlushCorrupted(unsigned folderIndex)

for (;;)
{
UInt64 remain = GetRemain();
if (remain == 0)
if (!NeedMoreWrite())
return S_OK;
UInt64 remain = GetRemain();
UInt32 size = (remain < kBufSize ? (UInt32)remain : (UInt32)kBufSize);
UInt32 processedSizeLocal = 0;
RINOK(Write2(buf, size, &processedSizeLocal, false));
Expand Down Expand Up @@ -1075,7 +1074,7 @@ STDMETHODIMP CHandler::Extract(const UInt32 *indices, UInt32 numItems,
bool keepInputBuffer = false;
bool thereWasNotAlignedChunk = false;

for (UInt32 bl = 0; cabFolderOutStream->GetRemain() != 0;)
for (UInt32 bl = 0; cabFolderOutStream->NeedMoreWrite();)
{
if (volIndex >= m_Database.Volumes.Size())
{
Expand Down Expand Up @@ -1217,7 +1216,7 @@ STDMETHODIMP CHandler::Extract(const UInt32 *indices, UInt32 numItems,
}
}

if (res != S_OK || cabFolderOutStream->GetRemain() != 0)
if (res != S_OK || cabFolderOutStream->NeedMoreWrite())
{
RINOK(cabFolderOutStream->FlushCorrupted(folderIndex2));
}
Expand Down
2 changes: 1 addition & 1 deletion DOC/7zip.inf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ AppName = "7-Zip"
InstallDir = %CE1%\%AppName%

[Strings]
AppVer = "15.13"
AppVer = "15.14"
AppDate = "2015-12-31"

[CEDevice]
Expand Down
2 changes: 1 addition & 1 deletion DOC/7zip.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
;Defines

!define VERSION_MAJOR 15
!define VERSION_MINOR 13
!define VERSION_MINOR 14
!define VERSION_POSTFIX_FULL ""
!ifdef WIN64
!ifdef IA64
Expand Down
2 changes: 1 addition & 1 deletion DOC/7zip.wxs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>

<?define VerMajor = "15" ?>
<?define VerMinor = "13" ?>
<?define VerMinor = "14" ?>
<?define VerBuild = "00" ?>
<?define MmVer = "$(var.VerMajor).$(var.VerMinor)" ?>
<?define MmHex = "$(var.VerMajor)$(var.VerMinor)" ?>
Expand Down
2 changes: 1 addition & 1 deletion DOC/readme.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
7-Zip 15.13 Sources
7-Zip 15.14 Sources
-------------------

7-Zip is a file archiver for Windows.
Expand Down

0 comments on commit c20d013

Please sign in to comment.