aboutsummaryrefslogtreecommitdiff
path: root/zencore/filesystem.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-09-16 16:44:00 +0200
committerMartin Ridgers <[email protected]>2021-09-16 16:44:00 +0200
commitb3bab9685b82269d3a2abcd7972709f9a9e8aa55 (patch)
tree53fe72cd058f6e0d027686dc9157f2f8a52b95d5 /zencore/filesystem.cpp
parentSimple FileSystemTraversal test case (diff)
downloadzen-b3bab9685b82269d3a2abcd7972709f9a9e8aa55.tar.xz
zen-b3bab9685b82269d3a2abcd7972709f9a9e8aa55.zip
There is no need to go to a wstring here as fs::path is already one
Diffstat (limited to 'zencore/filesystem.cpp')
-rw-r--r--zencore/filesystem.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/zencore/filesystem.cpp b/zencore/filesystem.cpp
index 42f0c0956..ece530474 100644
--- a/zencore/filesystem.cpp
+++ b/zencore/filesystem.cpp
@@ -621,10 +621,8 @@ FileSystemTraversal::TraverseFileSystem(const std::filesystem::path& RootDir, Tr
FILE_INFO_BY_HANDLE_CLASS FibClass = FileIdBothDirectoryRestartInfo;
bool Continue = true;
- std::wstring RootDirPath = RootDir.native();
-
CAtlFile RootDirHandle;
- HRESULT hRes = RootDirHandle.Create(RootDirPath.c_str(),
+ HRESULT hRes = RootDirHandle.Create(RootDir.c_str(),
GENERIC_READ,
FILE_SHARE_READ | FILE_SHARE_WRITE,
OPEN_EXISTING,