From 28c51228f84e607ecf87a882fc4fd0cc0fcaf9d9 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Thu, 2 Jul 2020 02:12:42 +0200 Subject: Windows: Hide the console windows of the native Windows format tool when we call it to perform formatting --- src/Common/Format.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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, -- cgit v1.2.3