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:
Diffstat (limited to 'source/blender/blenloader/intern/undofile.c')
-rw-r--r--source/blender/blenloader/intern/undofile.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/undofile.c b/source/blender/blenloader/intern/undofile.c
index 4da73138c38..92aec13ecf1 100644
--- a/source/blender/blenloader/intern/undofile.c
+++ b/source/blender/blenloader/intern/undofile.c
@@ -252,7 +252,11 @@ bool BLO_memfile_write_file(struct MemFile *memfile, const char *filename)
}
for (chunk = memfile->chunks.first; chunk; chunk = chunk->next) {
+#ifdef _WIN32
+ if ((size_t)write(file, chunk->buf, (uint)chunk->size) != chunk->size) {
+#else
if ((size_t)write(file, chunk->buf, chunk->size) != chunk->size) {
+#endif
break;
}
}