mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
support ios::app on win32
This commit is contained in:
parent
a99736ede9
commit
360ac27188
@ -619,6 +619,11 @@ write_chars_raw(const char *start, size_t length) {
|
|||||||
overlapped.Offset = ppos.LowPart;
|
overlapped.Offset = ppos.LowPart;
|
||||||
overlapped.OffsetHigh = ppos.HighPart;
|
overlapped.OffsetHigh = ppos.HighPart;
|
||||||
|
|
||||||
|
if (_open_mode & ios::app) {
|
||||||
|
overlapped.Offset = -1;
|
||||||
|
overlapped.OffsetHigh = -1;
|
||||||
|
}
|
||||||
|
|
||||||
DWORD bytes_written = 0;
|
DWORD bytes_written = 0;
|
||||||
BOOL success = WriteFile(_handle, start, length, &bytes_written, &overlapped);
|
BOOL success = WriteFile(_handle, start, length, &bytes_written, &overlapped);
|
||||||
while (!success) {
|
while (!success) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user