1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

Windows: Hide the console windows of the native Windows format tool when we call it to perform formatting

This commit is contained in:
Mounir IDRASSI
2020-07-02 02:12:42 +02:00
parent 6dab32086f
commit 28c51228f8

View File

@@ -1196,7 +1196,8 @@ BOOL ExternalFormatFs (int driveNo, int clusterSize, int fsType)
siStartInfo.hStdError = hChildStd_OUT_Wr; siStartInfo.hStdError = hChildStd_OUT_Wr;
siStartInfo.hStdOutput = hChildStd_OUT_Wr; siStartInfo.hStdOutput = hChildStd_OUT_Wr;
siStartInfo.hStdInput = hChildStd_IN_Rd; siStartInfo.hStdInput = hChildStd_IN_Rd;
siStartInfo.dwFlags |= STARTF_USESTDHANDLES; siStartInfo.wShowWindow = SW_HIDE;
siStartInfo.dwFlags |= STARTF_USESTDHANDLES | STARTF_USESHOWWINDOW;
/* Create the child process. */ /* Create the child process. */
bSuccess = CreateProcess(NULL, bSuccess = CreateProcess(NULL,