[Scummvm-git-logs] scummvm master -> db914294059b8e650faafc995835159d9fbf40f5

criezy criezy at scummvm.org
Tue Aug 31 16:42:29 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
db91429405 AGS; Fix opening stream in append mode


Commit: db914294059b8e650faafc995835159d9fbf40f5
    https://github.com/scummvm/scummvm/commit/db914294059b8e650faafc995835159d9fbf40f5
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2021-08-31T17:36:12+01:00

Commit Message:
AGS; Fix opening stream in append mode

Changed paths:
    engines/ags/shared/util/file_stream.cpp


diff --git a/engines/ags/shared/util/file_stream.cpp b/engines/ags/shared/util/file_stream.cpp
index 0907d899a6..3f4ff4646c 100644
--- a/engines/ags/shared/util/file_stream.cpp
+++ b/engines/ags/shared/util/file_stream.cpp
@@ -207,7 +207,8 @@ void FileStream::Open(const String &file_name, FileOpenMode open_mode, FileWorkM
 				assert(out);
 
 				out->write(data, fileSize);
-				out->seek(0, SEEK_SET);
+				if (work_mode != kFile_Write)
+					out->seek(0, SEEK_SET);
 				delete[] data;
 
 				_file = out;




More information about the Scummvm-git-logs mailing list