mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-06-05 12:38:16 +02:00
win32 fix: _dbus_get_install_root(): there are more places to fix case insensitive pattern search
This commit is contained in:
parent
9e918c8f74
commit
8ba739fb1a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue