From ed7f0c603ff3226b4f87f018700fd02fc9618f13 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 8 Apr 2011 06:47:41 +0000 Subject: [PATCH] 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. --- source/blender/blenlib/intern/path_util.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 */