Windows 2000 support, part 1

This commit is contained in:
tildearrow 2025-06-03 19:54:02 -05:00
parent f5a6a9ed6c
commit 1ec49d3557
7 changed files with 30 additions and 11 deletions

View file

@ -35,7 +35,7 @@ String getWinConfigPath() {
if (!PathIsDirectoryW(configPath.c_str())) {
logI("creating config dir...");
int mkdirRet;
if ((mkdirRet=SHCreateDirectory(NULL,configPath.c_str()))!=ERROR_SUCCESS) {
if ((mkdirRet=SHCreateDirectoryExW(NULL,configPath.c_str(),NULL))!=ERROR_SUCCESS) {
logW("could not make config dir! (%.8x)",mkdirRet);
configPath=L".";
}