[NTVDM]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Fri, 2 May 2014 18:49:15 +0000 (18:49 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Fri, 2 May 2014 18:49:15 +0000 (18:49 +0000)
Initialize the reference counts of the DOS console handles.

svn path=/branches/ntvdm/; revision=63118

subsystems/ntvdm/dos/dos32krnl/dos.c

index 59bf9e2..f145447 100644 (file)
@@ -2784,6 +2784,9 @@ BOOLEAN DosKRNLInitialize(VOID)
     DosSystemFileTable[1] = GetStdHandle(STD_OUTPUT_HANDLE);
     DosSystemFileTable[2] = GetStdHandle(STD_ERROR_HANDLE);
 
+    /* Initialize the reference counts */
+    DosSftRefCount[0] = DosSftRefCount[1] = DosSftRefCount[2] = 1;
+
 #endif
 
     /* Initialize the callback context */