Fixed known folders detection for Windows (at least compilation).
This commit is contained in:
parent
ce26cda739
commit
1c0c928856
@ -59,7 +59,7 @@ fs::path getKnownFolder(KnownFolder folder) MIJIN_NOEXCEPT
|
||||
|
||||
auto getKnownFolderPath = [](REFKNOWNFOLDERID rfid) -> fs::path
|
||||
{
|
||||
WSTR path = nullptr;
|
||||
WCHAR* path = nullptr;
|
||||
if (!SUCCEEDED(SHGetKnownFolderPath(rfid, KF_FLAG_DEFAULT, nullptr, &path)))
|
||||
{
|
||||
CoTaskMemFree(path);
|
||||
@ -122,6 +122,8 @@ std::vector<fs::path> getAllConfigFolders(IncludeUser includeUser, IncludeSystem
|
||||
}
|
||||
}
|
||||
}
|
||||
#else
|
||||
(void) includeSystem;
|
||||
#endif
|
||||
return result;
|
||||
}
|
||||
@ -144,6 +146,8 @@ std::vector<fs::path> getAllDataFolders(IncludeUser includeUser, IncludeSystem i
|
||||
}
|
||||
}
|
||||
}
|
||||
#else
|
||||
(void) includeSystem;
|
||||
#endif
|
||||
return result;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user