diff --git a/reactos/base/shell/cmd/cmd.c b/reactos/base/shell/cmd/cmd.c index 40cddc364a9..7e5b784665f 100644 --- a/reactos/base/shell/cmd/cmd.c +++ b/reactos/base/shell/cmd/cmd.c @@ -1838,6 +1838,7 @@ int _tmain(int argc, const TCHAR *argv[]) if (!GetConsoleScreenBufferInfo(hConsole, &Info)) { ConErrFormatMessage(GetLastError()); + CloseHandle(hConsole); return(1); } wDefColor = Info.wAttributes;