fix: windows syntax errors / typos

This commit is contained in:
2025-06-12 10:51:45 +02:00
parent 5e6d7d22e0
commit 364bc9dacd

View File

@@ -109,10 +109,10 @@ char* conf_getpat(char const* restrict str) {
#elif defined(_WIN32) || defined(_WIN64) || defined(__CYGWIN__) #elif defined(_WIN32) || defined(_WIN64) || defined(__CYGWIN__)
buf = getenv("APPDATA"); buf = getenv("APPDATA");
if (!buf) { if (!buf) {
cfgpat = getenv("USERPROFILE"); buf = getenv("USERPROFILE");
if (!buf) return NULL; if (!buf) return NULL;
len = strlen(buf); len = strlen(buf);
return conf_getpat_concat(buf, "\\AppData\\Roaming", str, buf, 16, str_len); return conf_getpat_concat(buf, "\\AppData\\Roaming", str, len, 16, str_len);
} }
return conf_getpat_concat(buf, NULL, str, strlen(buf), 0, str_len); return conf_getpat_concat(buf, NULL, str, strlen(buf), 0, str_len);
#else #else