diff options
Diffstat (limited to 'src/windeployqt/utils.cpp')
-rw-r--r-- | src/windeployqt/utils.cpp | 3 |
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. |