OSDN Git Service

Linux上でも、格納ファイル名にバックスラッシュを含む場合は、それ以前をディレクトリとして扱うように変更。
authorsirakaba <sirakaba@9df91469-1e22-0410-86e7-ea8537beb833>
Sun, 7 Feb 2010 13:20:51 +0000 (13:20 +0000)
committersirakaba <sirakaba@9df91469-1e22-0410-86e7-ea8537beb833>
Sun, 7 Feb 2010 13:20:51 +0000 (13:20 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/tpi/tpi@218 9df91469-1e22-0410-86e7-ea8537beb833

src/plugin/7zArc/7zArc.cpp

index d6dfb9f..ad86354 100644 (file)
@@ -159,7 +159,7 @@ STDMETHODIMP CArchiveExtractCallback::GetStream(unsigned int nIndex, ISequential
        hArc->GetProperty(nIndex, kpidPath, & prop);\r
        this->piInfo.fiInfo.szStoredName    = WC2String(prop.bstrVal);\r
        this->piInfo.fiInfo.llFileId        = nIndex;\r
-       this->piInfo.fiInfo.fnFileName      = wxFileName(this->piInfo.fiInfo.szStoredName);\r
+       this->piInfo.fiInfo.fnFileName      = wxFileName(this->piInfo.fiInfo.szStoredName, wxPATH_DOS);\r
        this->piInfo.fnDestination          = wxFileName(swInfo->fnDestinationDirectory.GetFullPath() + wxFileName::GetPathSeparator() + (swInfo->fStoreDirectoryPathes ? this->piInfo.fiInfo.fnFileName.GetPath() : (wxString) wxEmptyString), this->piInfo.fiInfo.fnFileName.GetFullName());\r
 \r
        // コールバック関数に送信。\r
@@ -484,7 +484,7 @@ int __stdcall GetFileInformation
        }\r
 */\r
        _fiInfo->llFileId       = s_uFileId++;\r
-       _fiInfo->fnFileName     = wxFileName(_fiInfo->szStoredName);\r
+       _fiInfo->fnFileName     = wxFileName(_fiInfo->szStoredName, wxPATH_DOS);\r
        return TPI_ERROR_SUCCESS;\r
 }\r
 \r