diff options
author | Brad King <brad.king@kitware.com> | 2017-09-01 14:35:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-09-01 14:35:19 (GMT) |
commit | cbf201782205d3e3c7fda33bb1f5828ac13efa1e (patch) | |
tree | 003b82467e2f449369b68835385d66d3860e79f3 /Source/kwsys/Directory.cxx | |
parent | 900f75868ce41620947ab4ca376d77e12d32830f (diff) | |
parent | 37760743fc50d9ad864e8a83f0da75ab000c22ec (diff) | |
download | CMake-cbf201782205d3e3c7fda33bb1f5828ac13efa1e.zip CMake-cbf201782205d3e3c7fda33bb1f5828ac13efa1e.tar.gz CMake-cbf201782205d3e3c7fda33bb1f5828ac13efa1e.tar.bz2 |
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys:
KWSys 2017-09-01 (aee0cf59)
Diffstat (limited to 'Source/kwsys/Directory.cxx')
-rw-r--r-- | Source/kwsys/Directory.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/kwsys/Directory.cxx b/Source/kwsys/Directory.cxx index 5141d45..69068aa 100644 --- a/Source/kwsys/Directory.cxx +++ b/Source/kwsys/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) { |