This commit is contained in:
Axel Kohlmeyer
2020-10-16 22:46:20 -04:00
parent 7420b7018a
commit a04c8c8a3b

View File

@ -681,7 +681,7 @@ int main(int argc, char **argv)
// switch to the user's documents directory. Avoid buffer overflow
// and skip this step if the path is too long for our buffer.
if (getcwd(buf, buflen)) {
if ((strstr(buf, "System32") || strstr(buf, "system32")) {
if ((strstr(buf, "System32") || strstr(buf, "system32"))) {
char *drive = getenv("HOMEDRIVE");
char *path = getenv("HOMEPATH");
buf[0] = '\0';