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

shellext: use default security attribs in CreateFileA call

Changeset d5ac2e721ea4

Parent 8870759a24f3

by Adrian Buehlmann

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

 
584
585
586
587
588
589
590
591
592
593
594
595
 
596
597
598
 
584
585
586
 
 
 
 
587
588
589
590
 
591
592
593
594
@@ -584,15 +584,11 @@
  cwd = IsDirectory(myFiles[0])? myFiles[0] : DirName(myFiles[0]);     const std::string tempfile = GetTemporaryFile(); - SECURITY_ATTRIBUTES sa; - memset(&sa, 0, sizeof(sa)); - sa.nLength = sizeof(sa); - sa.bInheritHandle = TRUE;     TDEBUG_TRACE("DoHgtk: temp file = " << tempfile);   HANDLE tempfileHandle = CreateFileA(   tempfile.c_str(), GENERIC_WRITE, - FILE_SHARE_READ, &sa, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0 + FILE_SHARE_READ, 0, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0   );     if (tempfileHandle == INVALID_HANDLE_VALUE)