mirror of
https://github.com/panda3d/panda3d.git
synced 2026-03-18 01:40:50 -05:00
support ios::app on win32
This commit is contained in:
@@ -618,6 +618,11 @@ write_chars_raw(const char *start, size_t length) {
|
||||
ppos.QuadPart = _ppos;
|
||||
overlapped.Offset = ppos.LowPart;
|
||||
overlapped.OffsetHigh = ppos.HighPart;
|
||||
|
||||
if (_open_mode & ios::app) {
|
||||
overlapped.Offset = -1;
|
||||
overlapped.OffsetHigh = -1;
|
||||
}
|
||||
|
||||
DWORD bytes_written = 0;
|
||||
BOOL success = WriteFile(_handle, start, length, &bytes_written, &overlapped);
|
||||
|
||||
Reference in New Issue
Block a user