mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
Check environment var names case-insensitively on Windows to avoid PATH vs Path variable conflict
This commit is contained in:
parent
2ea3e3f65a
commit
7ed146a4bf
@ -928,7 +928,11 @@ start_p3dpython(P3DInstance *inst) {
|
||||
const char *varc = var.c_str();
|
||||
bool found = false;
|
||||
for (int i = 0; dont_keep[i] != NULL && !found; ++i) {
|
||||
#ifdef _WIN32
|
||||
found = (_stricmp(dont_keep[i], varc) == 0);
|
||||
#else
|
||||
found = (strcmp(dont_keep[i], varc) == 0);
|
||||
#endif
|
||||
}
|
||||
if (!found) {
|
||||
// This variable is OK, keep it.
|
||||
|
Loading…
x
Reference in New Issue
Block a user