diff options
author | Ton Roosendaal <ton@blender.org> | 2005-01-20 13:33:11 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-01-20 13:33:11 +0300 |
commit | b561ca88cfc2445b82c3dc59bdbb8d9e46ee7e31 (patch) | |
tree | 0e222fee294d71a2e3a6df8f9356c92a5a4b31a1 /source/blender/readblenfile/intern | |
parent | 9fddd2bdec4f879a44304118e2f44929c2755483 (diff) |
Reading .blend from runtime closed file handle twice... seemed to crash in
windows? Weird, was a commit from april last year (Nathan) and nobody has
reported errors. (bug report 2155)
Diffstat (limited to 'source/blender/readblenfile/intern')
-rw-r--r-- | source/blender/readblenfile/intern/BLO_readblenfile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/readblenfile/intern/BLO_readblenfile.c b/source/blender/readblenfile/intern/BLO_readblenfile.c index 9b81b3bdd0d..8199c83c3ef 100644 --- a/source/blender/readblenfile/intern/BLO_readblenfile.c +++ b/source/blender/readblenfile/intern/BLO_readblenfile.c @@ -163,6 +163,7 @@ blo_read_runtime( //printf("starting to read runtime from %s at datastart %d\n", path, datastart); lseek(fd, datastart, SEEK_SET); bfd = blo_read_blendafterruntime(fd, actualsize-datastart, error_r); + fd= -1; // file was closed in blo_read_blendafterruntime() } cleanup: |