From 0a06865906eed471b1637caa49d506fb15900ecd Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Sun, 26 Apr 2015 23:24:21 +0000 Subject: [PATCH] [NTVDM] Properly initialize the CON device file descriptor when copying the system handle table. svn path=/trunk/; revision=67454 --- reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/handle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */