diff options
author | Brad King <brad.king@kitware.com> | 2017-09-05 13:27:19 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-09-05 13:27:22 (GMT) |
commit | e7de2a7def5d70b00df16039f9ce180b53fc86f1 (patch) | |
tree | afbb1d4ee4b70a15093491b092c479c39f9340c3 /Source/kwsys/Directory.cxx | |
parent | ad1b9eba85ddb5bc51f862b4001bab6600006ddb (diff) | |
parent | cbf201782205d3e3c7fda33bb1f5828ac13efa1e (diff) | |
download | CMake-e7de2a7def5d70b00df16039f9ce180b53fc86f1.zip CMake-e7de2a7def5d70b00df16039f9ce180b53fc86f1.tar.gz CMake-e7de2a7def5d70b00df16039f9ce180b53fc86f1.tar.bz2 |
Merge topic 'update-kwsys'
cbf20178 Merge branch 'upstream-KWSys' into update-kwsys
37760743 KWSys 2017-09-01 (aee0cf59)
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1223
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) { |