git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51392
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
return false;
char buf[4096];
return false;
char buf[4096];
{
stream.Read(buf, WXSIZEOF(buf));
const size_t nRead = stream.LastRead();
{
stream.Read(buf, WXSIZEOF(buf));
const size_t nRead = stream.LastRead();
- if ( !nRead || !file.Write(buf, nRead) )
+ if ( !nRead )
+ {
+ if ( stream.Eof() )
+ break;
+
+ return false;
+ }
+
+ if ( !file.Write(buf, nRead) )
- while ( !stream.Eof() );