mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-07-10 01:24:41 -06:00
UI: use FAILED
This commit is contained in:
parent
9a84b7f749
commit
b098e6591a
@ -69,10 +69,9 @@ fs::path GetAppDataRoamingPath()
|
||||
{
|
||||
PWSTR path = nullptr;
|
||||
HRESULT result = SHGetKnownFolderPath(FOLDERID_RoamingAppData, 0, nullptr, &path);
|
||||
if (result != S_OK || !path)
|
||||
if (FAILED(result))
|
||||
{
|
||||
if (path)
|
||||
CoTaskMemFree(path);
|
||||
CoTaskMemFree(path);
|
||||
return {};
|
||||
}
|
||||
std::string appDataPath = boost::nowide::narrow(path);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user