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:
@@ -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
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user