From: Aleksandar Andrejevic Date: Thu, 2 Oct 2014 21:16:12 +0000 (+0000) Subject: [NTVDM] X-Git-Tag: backups/0.3.17@66124~274 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=e8810d94f417e4513795a809967ae1e5b6a9e38f [NTVDM] Not every handle is a device handle. svn path=/trunk/; revision=64474 --- diff --git a/reactos/subsystems/ntvdm/dos/dos32krnl/dos.c b/reactos/subsystems/ntvdm/dos/dos32krnl/dos.c index d66b3d064bd..db5bc14f85a 100644 --- a/reactos/subsystems/ntvdm/dos/dos32krnl/dos.c +++ b/reactos/subsystems/ntvdm/dos/dos32krnl/dos.c @@ -1406,15 +1406,18 @@ BOOLEAN DosHandleIoctl(BYTE ControlCode, WORD FileHandle) { /* Console input */ InfoWord |= 1 << 0; + + /* It is a device */ + InfoWord |= 1 << 7; } else if (Handle == DosSystemFileTable[DOS_OUTPUT_HANDLE].Handle) { /* Console output */ InfoWord |= 1 << 1; - } - /* It is a device */ - InfoWord |= 1 << 7; + /* It is a device */ + InfoWord |= 1 << 7; + } /* Return the device information word */ setDX(InfoWord);