Selaa lähdekoodia

Merge branch 'backport-KWSys-SystemTools-CopyFileAlways-fix' into release

Brad King 10 vuotta sitten
vanhempi
sitoutus
eb3bced50f
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      Source/kwsys/SystemTools.cxx

+ 4 - 0
Source/kwsys/SystemTools.cxx

@@ -2330,6 +2330,10 @@ bool SystemTools::CopyFileAlways(const kwsys_stl::string& source, const kwsys_st
       {
       fout.write(buffer, fin.gcount());
       }
+    else
+      {
+      break;
+      }
     }
 
   // Make sure the operating system has finished writing the file