Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

shellext: check return value of CreateFileA call

Changeset 8870759a24f3

Parent baef1403961b

by Adrian Buehlmann

Changes to one file · Browse files at 8870759a24f3 Showing diff from parent baef1403961b Diff from another changeset...

 
595
596
597
 
 
 
 
 
 
598
599
600
 
595
596
597
598
599
600
601
602
603
604
605
606
@@ -595,6 +595,12 @@
  FILE_SHARE_READ, &sa, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0   );   + if (tempfileHandle == INVALID_HANDLE_VALUE) + { + TDEBUG_TRACE("DoHgtk: error: failed to create file " << tempfile); + return; + } +   typedef std::vector<std::string>::size_type ST;   for (ST i = 0; i < myFiles.size(); i++)   {