fix [#26803] Libs paths are case sensitive in windows
authorCampbell Barton <ideasman42@gmail.com>
Fri, 8 Apr 2011 06:47:41 +0000 (06:47 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 8 Apr 2011 06:47:41 +0000 (06:47 +0000)
another case was exposed by this report, making relative paths wasn't case insensitive on windows.

source/blender/blenlib/intern/path_util.c

index bc5e20f..0d3b17a 100644 (file)
@@ -456,7 +456,12 @@ void BLI_path_rel(char *file, const char *relfile)
                char *p= temp;
                char *q= file;
 
-               while (*p == *q) {
+#ifdef WIN32
+               while (tolower(*p) == tolower(*q))
+#else
+               while (*p == *q)
+#endif
+               {
                        ++p; ++q;
                        /* dont search beyond the end of the string
                         * in the rare case they match */