diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-04-08 10:47:41 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-04-08 10:47:41 +0400 |
commit | ed7f0c603ff3226b4f87f018700fd02fc9618f13 (patch) | |
tree | 87fb4e6dde0e1ece8a92d62844e2f8d8eac033d9 | |
parent | e6c30a41ea87bee8d08cffd7f9c25def6c49a06b (diff) |
fix [#26803] Libs paths are case sensitive in windows
another case was exposed by this report, making relative paths wasn't case insensitive on windows.
-rw-r--r-- | source/blender/blenlib/intern/path_util.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c index bc5e20fb3b2..0d3b17ace4b 100644 --- a/source/blender/blenlib/intern/path_util.c +++ b/source/blender/blenlib/intern/path_util.c @@ -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 */ |