mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 09:25:44 +01:00
fix: windows syntax errors / typos
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user