diff --git a/source/mijin/platform/folders.cpp b/source/mijin/platform/folders.cpp index aafd838..6b0dd12 100644 --- a/source/mijin/platform/folders.cpp +++ b/source/mijin/platform/folders.cpp @@ -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 getAllConfigFolders(IncludeUser includeUser, IncludeSystem } } } +#else + (void) includeSystem; #endif return result; } @@ -144,6 +146,8 @@ std::vector getAllDataFolders(IncludeUser includeUser, IncludeSystem i } } } +#else + (void) includeSystem; #endif return result; }