[Bf-blender-cvs] [1cfc48192c8] master: Fix T51432: Find Files case sensitive on win32

Campbell Barton noreply at git.blender.org
Mon May 8 01:51:41 CEST 2017


Commit: 1cfc48192c8555642f9fa6c03d96f558b46a0430
Author: Campbell Barton
Date:   Mon May 8 09:42:36 2017 +1000
Branches: master
https://developer.blender.org/rB1cfc48192c8555642f9fa6c03d96f558b46a0430

Fix T51432: Find Files case sensitive on win32

===================================================================

M	source/blender/blenkernel/intern/bpath.c

===================================================================

diff --git a/source/blender/blenkernel/intern/bpath.c b/source/blender/blenkernel/intern/bpath.c
index 487b8ffa2b5..f210c6aa7f3 100644
--- a/source/blender/blenkernel/intern/bpath.c
+++ b/source/blender/blenkernel/intern/bpath.c
@@ -243,7 +243,7 @@ static bool missing_files_find__recursive(
 			continue;  /* cant stat, don't bother with this file, could print debug info here */
 
 		if (S_ISREG(status.st_mode)) { /* is file */
-			if (STREQLEN(filename, de->d_name, FILE_MAX)) { /* name matches */
+			if (BLI_path_ncmp(filename, de->d_name, FILE_MAX) == 0) { /* name matches */
 				/* open the file to read its size */
 				size = status.st_size;
 				if ((size > 0) && (size > *r_filesize)) { /* find the biggest file */




More information about the Bf-blender-cvs mailing list