Blender Git Commit Log

Git Commits -> Revision 973f95f

Revision 973f95f by Sergey Sharybin (master)
May 28, 2014, 17:21 (GMT)
Fix T40157: Loading movies larger than 4GB in size fails

Issue was caused by _wstat returning EOVERFLOW error because
of file size didn't fit into stat structure which was using
long datatype.

The idea of this patch is to use _wstat64 and _stat64 structure
which is capable storing 64bit file sizes.

Made it a typedef for stat structure used by BLI_stat function
in order to make code easier to follow and avoid ifdefs all
over the place.

Additionally solved issue with BLI_exists which was wrongly
returning False in cases destination file is larger then 4GB.

Commit Details:

Full Hash: 973f95fa9dfb21e4347a510f119c55b9673f6076
Parent Commit: 74cc397
Lines Changed: +27, -16

9 Modified Paths:

/source/blender/blenkernel/intern/bpath.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/packedFile.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/text.c (+2, -2) (Diff)
/source/blender/blenlib/BLI_fileops.h (+12, -1) (Diff)
/source/blender/blenlib/intern/storage.c (+5, -5) (Diff)
/source/blender/editors/space_file/filesel.c (+1, -1) (Diff)
/source/blender/editors/space_text/text_ops.c (+1, -1) (Diff)
/source/blender/imbuf/intern/thumbs.c (+2, -2) (Diff)
/source/blender/imbuf/intern/util.c (+2, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021