Skip to content

Commit

Permalink
Make sure the winrt::hstring gets used as a wstring
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Jan 30, 2024
1 parent 166e76a commit 5acaf37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion alc/alconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,8 @@ void ReadALConfig()
const std::wstring_view buffer{bufstore.get()};
#else
winrt::Windows::Storage::ApplicationDataContainer localSettings = winrt::Windows::Storage::ApplicationData::Current().LocalSettings();
auto buffer = Windows::Storage::ApplicationData::Current().RoamingFolder().Path();
auto bufstore = Windows::Storage::ApplicationData::Current().RoamingFolder().Path();
std::wstring_view buffer{bufstore};
{
#endif
path = fs::path{buffer};
Expand Down

0 comments on commit 5acaf37

Please sign in to comment.