diff options
author | Rob Haarsma <phaseIV@zonnet.nl> | 2004-12-11 18:56:01 +0300 |
---|---|---|
committer | Rob Haarsma <phaseIV@zonnet.nl> | 2004-12-11 18:56:01 +0300 |
commit | 7434e91f7ddc75f6a5e7274cf54ba954d5035807 (patch) | |
tree | 6b1de6c1c809840c4840109ae0e2203550118ae4 | |
parent | 10d23303433151344899027495840ff82a5119a0 (diff) |
Bugfix #1589
When the render output directory doesn't exist (on windows) the BLI_recurdir_fileops() function
tries to create a directory with no name. Added check if a name is specified..
-rw-r--r-- | source/blender/blenlib/intern/fileops.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/fileops.c b/source/blender/blenlib/intern/fileops.c index a7d8c9c0323..a0d071aa177 100644 --- a/source/blender/blenlib/intern/fileops.c +++ b/source/blender/blenlib/intern/fileops.c @@ -198,9 +198,10 @@ void BLI_recurdir_fileops(char *dirname) { *lslash = 0; BLI_recurdir_fileops(tmp); } - - if (!CreateDirectory(dirname, NULL)) - callLocalErrorCallBack("Unable to create directory\n"); + + if(dirname[0]) /* patch, this recursive loop tries to create a nameless directory */ + if (!CreateDirectory(dirname, NULL)) + callLocalErrorCallBack("Unable to create directory\n"); } int BLI_rename(char *from, char *to) { |