Replace CreateDirectoryA with Unicode version.

This commit is contained in:
Dario 2024-12-15 11:50:52 -03:00
parent a6c9869671
commit c23db5b746

View file

@ -316,7 +316,10 @@ SWA_API uint32_t XamContentCreateEx(DWORD dwUserIndex, LPCSTR szRootName, const
} }
XamRegisterContent(*pContentData, root); XamRegisterContent(*pContentData, root);
CreateDirectoryA(root.c_str(), nullptr);
std::error_code ec;
std::filesystem::create_directory(std::u8string_view((const char8_t*)(root.c_str())), ec);
XamRootCreate(szRootName, root); XamRootCreate(szRootName, root);
} }
else else