* Sync up to trunk HEAD (r62502).
[reactos.git] / base / applications / cmdutils / help / help.c
index 69af5eb..2a2b67c 100644 (file)
@@ -25,7 +25,8 @@ 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;
+    if ((GetFileType(hHandle) & ~FILE_TYPE_REMOTE) != FILE_TYPE_CHAR)
+        return FALSE;
 
     /*
      * It may be. Perform another test... The idea comes from the