forked from eden-emu/eden
Sugestions and fixes.
This commit is contained in:
parent
9ced9068f5
commit
c3abbb6ed7
3 changed files with 56 additions and 54 deletions
|
@ -268,9 +268,9 @@ fs::path GetAppDataRoamingDirectory() {
|
|||
PWSTR appdata_roaming_path = nullptr;
|
||||
|
||||
if (SUCCEEDED(SHGetKnownFolderPath(FOLDERID_RoamingAppData, 0, NULL, &appdata_roaming_path))) {
|
||||
std::wstring wideAppdataRoamingPath(appdata_roaming_path);
|
||||
std::wstring wide_appdata_roaming_path(appdata_roaming_path);
|
||||
CoTaskMemFree(appdata_roaming_path);
|
||||
return fs::path{Common::UTF16ToUTF8(wideAppdataRoamingPath)};
|
||||
return fs::path{Common::UTF16ToUTF8(wide_appdata_roaming_path)};
|
||||
} else {
|
||||
LOG_ERROR(Common_Filesystem, "Failed to get the path to the %APPDATA% directory");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue