mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
support ios::app on win32
This commit is contained in:
parent
a99736ede9
commit
360ac27188
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user