Flush the stream when doing a uio_close() after a uio_fwrite().

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2655 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
Meep-Eep
2007-01-11 22:04:14 +00:00
parent 30351edb89
commit 8105e86155
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -1,4 +1,5 @@
Changes towards version 0.7: Changes towards version 0.7:
- Flush write buffer when doing a uio_close() after a uio_fwrite() - SvdB
- Major rewrite of the SwapBuffers commands -- screen compositing logic - Major rewrite of the SwapBuffers commands -- screen compositing logic
has all been abstracted out into sdl_common.c instead of being has all been abstracted out into sdl_common.c instead of being
nearly-duplicated in opengl.c and pure.c - Michael nearly-duplicated in opengl.c and pure.c - Michael
+1
View File
@@ -356,6 +356,7 @@ uio_fwrite(const void *buf, size_t size, size_t nmemb, uio_Stream *stream) {
ssize_t bytesWritten; ssize_t bytesWritten;
uio_assertWriteSanity(stream); uio_assertWriteSanity(stream);
stream->operation = uio_StreamOperation_write;
// NB. If a file is opened in append mode, the file position indicator // NB. If a file is opened in append mode, the file position indicator
// is moved to the end of the file before writing. // is moved to the end of the file before writing.