diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-06-25 18:48:30 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-06-25 18:48:30 +0400 |
commit | 40d4dfaba84fe0d5048cc847d5d249a35314b8ed (patch) | |
tree | 89346ba302d9d00b857b23b13b84e14cd8c6ba99 /source/blender/imbuf/intern/thumbs.c | |
parent | 689ca4aef7228f910065d45e0648e802c17ab7c2 (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/imbuf/intern/thumbs.c')
-rw-r--r-- | source/blender/imbuf/intern/thumbs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/thumbs.c b/source/blender/imbuf/intern/thumbs.c index 44358d8147e..59b78109aaf 100644 --- a/source/blender/imbuf/intern/thumbs.c +++ b/source/blender/imbuf/intern/thumbs.c @@ -319,7 +319,7 @@ ImBuf *IMB_thumb_create(const char *path, ThumbSize size, ThumbSource source, Im } if (img != NULL) { - stat(path, &info); + BLI_stat(path, &info); BLI_snprintf(mtime, sizeof(mtime), "%ld", (long int)info.st_mtime); BLI_snprintf(cwidth, sizeof(cwidth), "%d", img->x); BLI_snprintf(cheight, sizeof(cheight), "%d", img->y); @@ -339,7 +339,7 @@ ImBuf *IMB_thumb_create(const char *path, ThumbSize size, ThumbSource source, Im } IMB_free_anim(anim); } - stat(path, &info); + BLI_stat(path, &info); BLI_snprintf(mtime, sizeof(mtime), "%ld", (long int)info.st_mtime); } if (!img) return NULL; |