From d6683e9376fd3d847542d8a0165891c4cea77521 Mon Sep 17 00:00:00 2001 From: pandamicro Date: Tue, 24 Jan 2017 15:26:24 +0800 Subject: [PATCH] Fix compilation issues on win32 --- native/cocos/platform/CCFileUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/cocos/platform/CCFileUtils.cpp b/native/cocos/platform/CCFileUtils.cpp index 946f4b25d3..82fb116e31 100644 --- a/native/cocos/platform/CCFileUtils.cpp +++ b/native/cocos/platform/CCFileUtils.cpp @@ -1041,7 +1041,7 @@ std::vector FileUtils::listFiles(const std::string& dirPath) const unsigned int length = MultiByteToWideChar(CP_UTF8, 0, &fullpath[0], (int)fullpath.size(), NULL, 0); if (length != fullpath.size()) { - return; + return files; } std::wstring fullpathstr(length, 0); MultiByteToWideChar(CP_UTF8, 0, &fullpath[0], (int)fullpath.size(), &fullpathstr[0], length);