diff --git a/Qt/QtMain.cpp b/Qt/QtMain.cpp index 5ed1349ddae6..5be0cefa01a3 100644 --- a/Qt/QtMain.cpp +++ b/Qt/QtMain.cpp @@ -155,9 +155,9 @@ std::vector System_GetPropertyStringVec(SystemProperty prop) { case SYSPROP_TEMP_DIRS: if (getenv("TMPDIR") && strlen(getenv("TMPDIR")) != 0) result.push_back(getenv("TMPDIR")); - if (getenv("TMPDIR") && strlen(getenv("TMP")) != 0) + if (getenv("TMP") && strlen(getenv("TMP")) != 0) result.push_back(getenv("TMP")); - if (getenv("TMPDIR") && strlen(getenv("TEMP")) != 0) + if (getenv("TEMP") && strlen(getenv("TEMP")) != 0) result.push_back(getenv("TEMP")); return result; diff --git a/SDL/SDLMain.cpp b/SDL/SDLMain.cpp index e04edae1e4bc..98b56fe91212 100644 --- a/SDL/SDLMain.cpp +++ b/SDL/SDLMain.cpp @@ -332,9 +332,9 @@ std::vector System_GetPropertyStringVec(SystemProperty prop) { case SYSPROP_TEMP_DIRS: if (getenv("TMPDIR") && strlen(getenv("TMPDIR")) != 0) result.push_back(getenv("TMPDIR")); - if (getenv("TMPDIR") && strlen(getenv("TMP")) != 0) + if (getenv("TMP") && strlen(getenv("TMP")) != 0) result.push_back(getenv("TMP")); - if (getenv("TMPDIR") && strlen(getenv("TEMP")) != 0) + if (getenv("TEMP") && strlen(getenv("TEMP")) != 0) result.push_back(getenv("TEMP")); return result; diff --git a/UWP/PPSSPP_UWPMain.cpp b/UWP/PPSSPP_UWPMain.cpp index 517f1c6f5c76..0ba7fac4b69e 100644 --- a/UWP/PPSSPP_UWPMain.cpp +++ b/UWP/PPSSPP_UWPMain.cpp @@ -373,9 +373,9 @@ std::vector System_GetPropertyStringVec(SystemProperty prop) { if (getenv("TMPDIR") && strlen(getenv("TMPDIR")) != 0) result.push_back(getenv("TMPDIR")); - if (getenv("TMPDIR") && strlen(getenv("TMP")) != 0) + if (getenv("TMP") && strlen(getenv("TMP")) != 0) result.push_back(getenv("TMP")); - if (getenv("TMPDIR") && strlen(getenv("TEMP")) != 0) + if (getenv("TEMP") && strlen(getenv("TEMP")) != 0) result.push_back(getenv("TEMP")); return result; } diff --git a/Windows/main.cpp b/Windows/main.cpp index fcff1d71830d..4d948cfe5b6a 100644 --- a/Windows/main.cpp +++ b/Windows/main.cpp @@ -233,9 +233,9 @@ std::vector System_GetPropertyStringVec(SystemProperty prop) { if (getenv("TMPDIR") && strlen(getenv("TMPDIR")) != 0) result.push_back(getenv("TMPDIR")); - if (getenv("TMPDIR") && strlen(getenv("TMP")) != 0) + if (getenv("TMP") && strlen(getenv("TMP")) != 0) result.push_back(getenv("TMP")); - if (getenv("TMPDIR") && strlen(getenv("TEMP")) != 0) + if (getenv("TEMP") && strlen(getenv("TEMP")) != 0) result.push_back(getenv("TEMP")); return result; }