summaryrefslogtreecommitdiff
path: root/src/windeployqt/utils.cpp
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2016-11-08 12:45:15 +0100
committerLiang Qi <liang.qi@qt.io>2016-11-08 12:53:08 +0100
commit1d0035c224de525dc532cc34de7c03b7a9ed4520 (patch)
tree17f594a52268e01590e085d9a96b52c0551af19b /src/windeployqt/utils.cpp
parent443852576e2923a142dd2655f7e3c4d0c2b836ff (diff)
parent21c61b26bfb7d6bafac848effd0a169db48ad991 (diff)
downloadqttools-1d0035c224de525dc532cc34de7c03b7a9ed4520.tar.gz
Merge remote-tracking branch 'origin/5.7' into 5.8
Change-Id: Ib403ca6ac5edf4c75e7fbdcd467601bdfe348e6d
Diffstat (limited to 'src/windeployqt/utils.cpp')
-rw-r--r--src/windeployqt/utils.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/windeployqt/utils.cpp b/src/windeployqt/utils.cpp
index c0a6f8526..667dad064 100644
--- a/src/windeployqt/utils.cpp
+++ b/src/windeployqt/utils.cpp
@@ -192,7 +192,8 @@ static HANDLE createInheritableTemporaryFile()
securityAttributes.bInheritHandle = TRUE;
return CreateFile(name, GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE, &securityAttributes,
- TRUNCATE_EXISTING, FILE_ATTRIBUTE_TEMPORARY, NULL);
+ TRUNCATE_EXISTING,
+ FILE_ATTRIBUTE_TEMPORARY | FILE_FLAG_DELETE_ON_CLOSE, NULL);
}
// runProcess helper: Rewind and read out a temporary file for stdout/stderr.