Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-06-25 18:48:30 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-06-25 18:48:30 +0400
commit40d4dfaba84fe0d5048cc847d5d249a35314b8ed (patch)
tree89346ba302d9d00b857b23b13b84e14cd8c6ba99 /source/blender/editors/space_file/filesel.c
parent689ca4aef7228f910065d45e0648e802c17ab7c2 (diff)
Fix #35824: finding missing files not working correct for filepaths with special
characters on Windows. Replaced some uses of stat() by BLI_stat() to properly handle such filepaths.
Diffstat (limited to 'source/blender/editors/space_file/filesel.c')
-rw-r--r--source/blender/editors/space_file/filesel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/filesel.c b/source/blender/editors/space_file/filesel.c
index a31af851575..85e4d255603 100644
--- a/source/blender/editors/space_file/filesel.c
+++ b/source/blender/editors/space_file/filesel.c
@@ -667,7 +667,7 @@ bool autocomplete_directory(struct bContext *C, char *str, void *UNUSED(arg_v))
BLI_join_dirfile(path, sizeof(path), dirname, de->d_name);
- if (stat(path, &status) == 0) {
+ if (BLI_stat(path, &status) == 0) {
if (S_ISDIR(status.st_mode)) { /* is subdir */
autocomplete_do_name(autocpl, path);
}