From: Amine Khaldi Date: Sat, 23 Dec 2017 22:59:39 +0000 (+0100) Subject: [NTVDM] Missed this file. X-Git-Tag: 0.4.9-dev~586 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=d822478e0663535adba02603039d84578d39e274 [NTVDM] Missed this file. --- diff --git a/subsystems/mvdm/ntvdm/dos/dos32krnl/handle.c b/subsystems/mvdm/ntvdm/dos/dos32krnl/handle.c index 45ca0bc7769..adf335a9a57 100644 --- a/subsystems/mvdm/ntvdm/dos/dos32krnl/handle.c +++ b/subsystems/mvdm/ntvdm/dos/dos32krnl/handle.c @@ -22,32 +22,6 @@ #include "memory.h" #include "process.h" -/* PRIVATE FUNCTIONS **********************************************************/ - -/* Taken from base/shell/cmd/console.c */ -static BOOL IsConsoleHandle(HANDLE hHandle) -{ - DWORD dwMode; - - /* Check whether the handle may be that of a console... */ - if ((GetFileType(hHandle) & FILE_TYPE_CHAR) == 0) return FALSE; - - /* - * It may be. Perform another test... The idea comes from the - * MSDN description of the WriteConsole API: - * - * "WriteConsole fails if it is used with a standard handle - * that is redirected to a file. If an application processes - * multilingual output that can be redirected, determine whether - * the output handle is a console handle (one method is to call - * the GetConsoleMode function and check whether it succeeds). - * If the handle is a console handle, call WriteConsole. If the - * handle is not a console handle, the output is redirected and - * you should call WriteFile to perform the I/O." - */ - return GetConsoleMode(hHandle, &dwMode); -} - /* PUBLIC FUNCTIONS ***********************************************************/ VOID DosCopyHandleTable(LPBYTE DestinationTable)