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
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F
1 changed files with 2 additions and 1 deletions

View File

@ -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,