mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
fix win32 bug
This commit is contained in:
parent
67c24c33e8
commit
a99736ede9
@ -518,7 +518,13 @@ write_chars(const char *start, size_t length) {
|
|||||||
char *buffer = (char *)alloca(buffer_length);
|
char *buffer = (char *)alloca(buffer_length);
|
||||||
|
|
||||||
size_t write_length = encode_newlines(buffer, buffer_length, start, length);
|
size_t write_length = encode_newlines(buffer, buffer_length, start, length);
|
||||||
return write_chars_raw(buffer, write_length);
|
if (write_length == write_chars_raw(buffer, write_length)) {
|
||||||
|
// Success. Return the number of original characters.
|
||||||
|
return length;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Error. Pretend we wrote nothing.
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user