VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2020-07-02 02:12:42 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2020-07-02 02:21:16 +0200
commit28c51228f84e607ecf87a882fc4fd0cc0fcaf9d9 (patch)
tree981924e4c5961b6b564615386f0f9a3b99ee6068
parent6dab32086fef7e7e73c24c2d3178f0c070886082 (diff)
downloadVeraCrypt-28c51228f84e607ecf87a882fc4fd0cc0fcaf9d9.tar.gz
VeraCrypt-28c51228f84e607ecf87a882fc4fd0cc0fcaf9d9.zip
Windows: Hide the console windows of the native Windows format tool when we call it to perform formatting
-rw-r--r--src/Common/Format.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Common/Format.c b/src/Common/Format.c
index 76923c6b..d1aa653c 100644
--- a/src/Common/Format.c
+++ b/src/Common/Format.c
@@ -1196,7 +1196,8 @@ BOOL ExternalFormatFs (int driveNo, int clusterSize, int fsType)
siStartInfo.hStdError = hChildStd_OUT_Wr;
siStartInfo.hStdOutput = hChildStd_OUT_Wr;
siStartInfo.hStdInput = hChildStd_IN_Rd;
- siStartInfo.dwFlags |= STARTF_USESTDHANDLES;
+ siStartInfo.wShowWindow = SW_HIDE;
+ siStartInfo.dwFlags |= STARTF_USESTDHANDLES | STARTF_USESHOWWINDOW;
/* Create the child process. */
bSuccess = CreateProcess(NULL,