Fix own stupid error in yesterday's refactor of recursive dir creation.
Missed adding return value in one place. Thanks a lot to Thomas Szepe for reporting the issue and finding the solution! Question remains: how could MSVC allow such a code to compile in some cases (own win64 + scons buildbot win32 were OK with that it seems!). Crappy compiler, not comming to the rescue of stupid dev...
This commit is contained in:
@@ -448,7 +448,9 @@ bool BLI_dir_create_recursive(const char *dirname)
|
||||
BLI_del_slash(tmp);
|
||||
|
||||
/* check special case "c:\foo", don't try create "c:", harmless but prints an error below */
|
||||
if (isalpha(tmp[0]) && (tmp[1] == ':') && tmp[2] == '\0') return;
|
||||
if (isalpha(tmp[0]) && (tmp[1] == ':') && tmp[2] == '\0') {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (BLI_is_dir(tmp)) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user