From: Aleksandar Andrejevic Date: Sun, 26 Apr 2015 23:24:21 +0000 (+0000) Subject: [NTVDM] X-Git-Tag: backups/colins-printing-for-freedom@73041~163 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=0a06865906eed471b1637caa49d506fb15900ecd [NTVDM] Properly initialize the CON device file descriptor when copying the system handle table. svn path=/trunk/; revision=67454 --- diff --git a/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/handle.c b/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/handle.c index 2f64ca83c01..a4ec76d066b 100644 --- a/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/handle.c +++ b/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/handle.c @@ -102,7 +102,7 @@ VOID DosCopyHandleTable(LPBYTE DestinationTable) { PDOS_DEVICE_NODE Node = DosGetDriverNode(SysVars->ActiveCon); - Descriptor->DeviceInfo = 1 << 7; + Descriptor->DeviceInfo = Node->DeviceAttributes | (1 << 7); Descriptor->DevicePointer = SysVars->ActiveCon; /* Call the open routine */