aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/zip
diff options
context:
space:
mode:
authorGravatar Hoà V. DINH <dinh.viet.hoa@gmail.com>2015-01-22 21:39:34 -0800
committerGravatar Hoà V. DINH <dinh.viet.hoa@gmail.com>2015-01-22 21:39:34 -0800
commitd45ce14d841e6555bf0b524cee12aa111155ffab (patch)
tree0ea54f678527b58985a666edbc910bfebc9d0caf /src/core/zip
parent860ecfd058607b648be998dc9c2ffc2daa6b25bf (diff)
Fixed CreateZipFileFromFolder() on win32.
Diffstat (limited to 'src/core/zip')
-rw-r--r--src/core/zip/MCZip.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/zip/MCZip.cpp b/src/core/zip/MCZip.cpp
index 334ec50b..a9879c9f 100644
--- a/src/core/zip/MCZip.cpp
+++ b/src/core/zip/MCZip.cpp
@@ -80,16 +80,16 @@ static ErrorCode addFile(zipFile file, String * path)
HANDLE hFind = INVALID_HANDLE_VALUE;
WIN32_FIND_DATA ffd;
- hFind = FindFirstFile(wildcard->fileSystemRepresentation(), &ffd);
+ hFind = FindFirstFile(wildcard->unicodeCharacters(), &ffd);
if (hFind == INVALID_HANDLE_VALUE) {
return ErrorFile;
}
do {
- if ((strcmp(ffd.cFileName, ".") == 0) || (strcmp(ffd.cFileName, "..") == 0)) {
+ if ((wcscmp(ffd.cFileName, L".") == 0) || (wcscmp(ffd.cFileName, L"..") == 0)) {
continue;
}
- String * subpath = path->stringByAppendingPathComponent(String::stringWithFileSystemRepresentation(ffd.cFileName));
+ String * subpath = path->stringByAppendingPathComponent(String::stringWithCharacters(ffd.cFileName));
addFile(file, subpath);
}
while (FindNextFile(hFind, &ffd) != 0);