From ac7dce758b54a156e730b33d167c84138a72b67c Mon Sep 17 00:00:00 2001 From: gibbed Date: Mon, 9 Jan 2017 17:05:05 -0600 Subject: [PATCH] Fixed xe::filesystem::DeleteFolder on Windows. Should fix some issues where games tried to overwrite existing content such as saves and was failing. --- src/xenia/base/filesystem_win.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/base/filesystem_win.cc b/src/xenia/base/filesystem_win.cc index 13e1c9ce9..52ae2eb36 100644 --- a/src/xenia/base/filesystem_win.cc +++ b/src/xenia/base/filesystem_win.cc @@ -34,7 +34,7 @@ bool CreateFolder(const std::wstring& path) { } bool DeleteFolder(const std::wstring& path) { - auto double_null_path = path + L"\0"; + auto double_null_path = path + std::wstring(L"\0", 1); SHFILEOPSTRUCT op = {0}; op.wFunc = FO_DELETE; op.pFrom = double_null_path.c_str();