summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fs/virtfs/virtfszip.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/fs/virtfs/virtfszip.cpp b/src/fs/virtfs/virtfszip.cpp
index 9b53e86aa..e4770c517 100644
--- a/src/fs/virtfs/virtfszip.cpp
+++ b/src/fs/virtfs/virtfszip.cpp
@@ -269,8 +269,11 @@ namespace VirtFsZip
if (found == false)
{
std::string dirName2 = pathJoin(dirName, fileName);
- if (findLast(dirName2, std::string(dirSeparator)) == false)
+ if (findLast(dirName2, std::string(dirSeparator)) ==
+ false)
+ {
dirName2 += dirSeparator;
+ }
FOR_EACH (std::vector<std::string>::const_iterator,
it,
zipEntry->mDirs)
@@ -361,8 +364,11 @@ namespace VirtFsZip
if (found == false)
{
std::string dirName2 = pathJoin(dirName, fileName);
- if (findLast(dirName2, std::string(dirSeparator)) == false)
+ if (findLast(dirName2, std::string(dirSeparator)) ==
+ false)
+ {
dirName2 += dirSeparator;
+ }
FOR_EACH (std::vector<std::string>::const_iterator,
it,
zipEntry->mDirs)
@@ -453,8 +459,11 @@ namespace VirtFsZip
if (found == false)
{
std::string dirName2 = pathJoin(dirName, fileName);
- if (findLast(dirName2, std::string(dirSeparator)) == false)
+ if (findLast(dirName2, std::string(dirSeparator)) ==
+ false)
+ {
dirName2 += dirSeparator;
+ }
FOR_EACH (std::vector<std::string>::const_iterator,
it,
zipEntry->mDirs)