[NTVDM]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Sun, 26 Apr 2015 23:24:21 +0000 (23:24 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Sun, 26 Apr 2015 23:24:21 +0000 (23:24 +0000)
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

index 2f64ca8..a4ec76d 100644 (file)
@@ -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 */