summaryrefslogtreecommitdiffstats
path: root/Directory.cxx
diff options
context:
space:
mode:
authorKWSys Upstream <kwrobot@kitware.com>2017-09-01 13:55:04 (GMT)
committerBrad King <brad.king@kitware.com>2017-09-01 14:35:18 (GMT)
commit37760743fc50d9ad864e8a83f0da75ab000c22ec (patch)
tree373c5a80c85dd10dbf217270df3b185e8ee4bb3f /Directory.cxx
parent9e0026216fb81e71ecd6918294a7ff8004132f1d (diff)
downloadCMake-37760743fc50d9ad864e8a83f0da75ab000c22ec.zip
CMake-37760743fc50d9ad864e8a83f0da75ab000c22ec.tar.gz
CMake-37760743fc50d9ad864e8a83f0da75ab000c22ec.tar.bz2
KWSys 2017-09-01 (aee0cf59)
Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit aee0cf59bbed8c8ccc07fa3d77760024cdca520a (master). Upstream Shortlog ----------------- Steven Velez (1): 80652055 Directory: Use Windows Extended Paths
Diffstat (limited to 'Directory.cxx')
-rw-r--r--Directory.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Directory.cxx b/Directory.cxx
index 5141d45..69068aa 100644
--- a/Directory.cxx
+++ b/Directory.cxx
@@ -118,8 +118,8 @@ bool Directory::Load(const std::string& name)
struct _wfinddata_t data; // data of current file
// Now put them into the file array
- srchHandle =
- _wfindfirst_func((wchar_t*)Encoding::ToWide(buf).c_str(), &data);
+ srchHandle = _wfindfirst_func(
+ (wchar_t*)Encoding::ToWindowsExtendedPath(buf).c_str(), &data);
delete[] buf;
if (srchHandle == -1) {