mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
*** empty log message ***
This commit is contained in:
parent
98eda01daa
commit
7b002d2901
@ -31,6 +31,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Patch File Format ///////////////////////////////////////////////
|
// Patch File Format ///////////////////////////////////////////////
|
||||||
|
///// IF THIS CHANGES, UPDATE installerApplyPatch.cxx IN THE INSTALLER
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// [ HEADER ]
|
// [ HEADER ]
|
||||||
// 4 bytes 0xfeebfaab ("magic number")
|
// 4 bytes 0xfeebfaab ("magic number")
|
||||||
@ -325,7 +326,7 @@ run(void) {
|
|||||||
PN_uint32 bytes_left = (PN_uint32)COPY_length;
|
PN_uint32 bytes_left = (PN_uint32)COPY_length;
|
||||||
|
|
||||||
while (bytes_left > 0) {
|
while (bytes_left > 0) {
|
||||||
PN_uint32 bytes_this_time = ((int)bytes_left < buflen) ? bytes_left : buflen;
|
PN_uint32 bytes_this_time = (int)min(bytes_left, buflen);
|
||||||
_origfile_stream.read(_buffer->_buffer, bytes_this_time);
|
_origfile_stream.read(_buffer->_buffer, bytes_this_time);
|
||||||
_write_stream.write(_buffer->_buffer, bytes_this_time);
|
_write_stream.write(_buffer->_buffer, bytes_this_time);
|
||||||
bytes_left -= bytes_this_time;
|
bytes_left -= bytes_this_time;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user