From d822478e0663535adba02603039d84578d39e274 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sat, 23 Dec 2017 23:59:39 +0100 Subject: [PATCH] [NTVDM] Missed this file. --- subsystems/mvdm/ntvdm/dos/dos32krnl/handle.c | 26 -------------------- 1 file changed, 26 deletions(-) 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) -- 2.17.1