[core] make check for portable version case insensitive

* Closes #482
This commit is contained in:
Pete Batard 2015-08-04 22:31:37 +01:00
parent 289e12dbbb
commit e1f76a5dd1
2 changed files with 6 additions and 6 deletions

View file

@ -2680,7 +2680,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
tmp = &argv[0][strlen(argv[0]) -1];
while ((((uintptr_t)tmp)>((uintptr_t)argv[0])) && (*tmp != '\\'))
tmp--;
if (strchr(tmp, 'p') != NULL)
if ((strchr(tmp, 'p') != NULL) || (strchr(tmp, 'P') != NULL))
ini_flags[0] = 'a';
// Now enable the hogger before processing the rest of the arguments