|
@@ -250,7 +250,12 @@ int unZipCurrentFile(zipFile zf, string destDirPath)
|
|
|
|
|
|
//替换newFileName字符串中的'/'到对应平台路径
|
|
|
#ifdef RVC_OS_WIN
|
|
|
- if (!replaceInPlace(newFileName, "/", "\\")) {
|
|
|
+ if (!replacePlace(newFileName, "/", "\\")) {
|
|
|
+ Dbg("replaceInPlace zip fileName fail:zipFileName(%s)", newFileName.c_str());
|
|
|
+ return -1;
|
|
|
+ }
|
|
|
+#else
|
|
|
+ if (!replacePlace(newFileName, "\\", "/")) {
|
|
|
Dbg("replaceInPlace zip fileName fail:zipFileName(%s)", newFileName.c_str());
|
|
|
return -1;
|
|
|
}
|