OSDN Git Service

微修正。
authorsirakaba <sirakaba@9df91469-1e22-0410-86e7-ea8537beb833>
Sun, 9 Jan 2011 09:39:42 +0000 (09:39 +0000)
committersirakaba <sirakaba@9df91469-1e22-0410-86e7-ea8537beb833>
Sun, 9 Jan 2011 09:39:42 +0000 (09:39 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/tpi/tpi@463 9df91469-1e22-0410-86e7-ea8537beb833

src/plugin/7zArc/7zArc.cpp

index b5cdcd1..b8021d6 100644 (file)
@@ -262,6 +262,7 @@ CArchiveExtractCallback::CArchiveExtractCallback(CMyComPtr<IInArchive> hArc, TPI
 {\r
        this->hArc = hArc;\r
        this->swInfo = swInfo;\r
+       this->nCurrentPos = 0;\r
        this->fTriedPassword = false;\r
 }\r
 \r
@@ -517,7 +518,7 @@ STDMETHODIMP CArchiveUpdateCallback::GetStream(unsigned int nIndex, ISequentialI
        // 前のファイルの処理の終了を通知。\r
        this->nCurrentPos += this->piInfo.fiInfo.nUnpackedSize;\r
        this->piInfo.eMessage               = TPI_MESSAGE_STATUS;\r
-       if (this->nCurrentPos != 0)\r
+       if (this->nCurrentPos > 0)\r
        {\r
                this->piInfo.eStatus            = TPI_STATUS_ENDPROCESS;\r
                if (g_prProc != NULL && g_prProc(TPI_NOTIFY_COMMON, & this->piInfo) != TPI_CALLBACK_CONTINUE)\r