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 GetTemporaryFile call

Changeset 3c296ed4ec6f

Parent d5ac2e721ea4

by Adrian Buehlmann

Changes to one file · Browse files at 3c296ed4ec6f Showing diff from parent d5ac2e721ea4 Diff from another changeset...

 
584
585
586
 
 
 
 
 
587
588
589
 
584
585
586
587
588
589
590
591
592
593
594
@@ -584,6 +584,11 @@
  cwd = IsDirectory(myFiles[0])? myFiles[0] : DirName(myFiles[0]);     const std::string tempfile = GetTemporaryFile(); + if (tempfile.empty()) + { + TDEBUG_TRACE("DoHgtk: error: GetTemporaryFile returned empty string"); + return; + }     TDEBUG_TRACE("DoHgtk: temp file = " << tempfile);   HANDLE tempfileHandle = CreateFileA(