win32 fix: _dbus_get_install_root(): there are more places to fix case insensitive pattern search

This commit is contained in:
Ralf Habacker 2010-02-07 00:32:13 +01:00
parent 9e918c8f74
commit 8ba739fb1a

View file

@ -3187,7 +3187,7 @@ _dbus_get_install_root(char *prefix, int len)
//folder's name happens to end with the *bytes*
//"\\bin"... (I.e. the second byte of some Han character and then
//the Latin "bin", but that is not likely I think...
if (lastSlash - prefix >= 4 && strncmp(lastSlash - 4, "\\bin", 4) == 0)
if (lastSlash - prefix >= 4 && strnicmp(lastSlash - 4, "\\bin", 4) == 0)
lastSlash[-3] = 0;
else if (lastSlash - prefix >= 10 && strnicmp(lastSlash - 10, "\\bin\\debug", 10) == 0)
lastSlash[-9] = 0;