diff --git a/standardpaths.cpp b/standardpaths.cpp index cc3ac09..068ef17 100644 --- a/standardpaths.cpp +++ b/standardpaths.cpp @@ -5,7 +5,7 @@ namespace fs = std::filesystem; #ifdef _WIN32 -fs::path getWindowsDirectory(void) { +fs::path getWindowsDirectory() { wchar_t wcp[MAX_PATH]; fs::path windowsDir(""); @@ -30,7 +30,7 @@ fs::path getWindowsKnownFolder(REFKNOWNFOLDERID folder_guid) { hr = SHGetKnownFolderPath(folder_guid, 0, NULL, &wcp); if (SUCCEEDED (hr)) { - specialFolder = widetoutf8(wcp); // XXX: convert to UTF-8 + specialFolder = widetoutf8(wcp); } CoTaskMemFree(wcp); diff --git a/standardpaths.hpp b/standardpaths.hpp index 27eb424..9ec7aa2 100644 --- a/standardpaths.hpp +++ b/standardpaths.hpp @@ -17,7 +17,7 @@ #ifdef _WIN32 -std::filesystem::path getWindowsDirectory(void); +std::filesystem::path getWindowsDirectory(); std::filesystem::path getWindowsKnownFolder(REFKNOWNFOLDERID folder_guid); #endif std::filesystem::path getHomeDir();