Author: aandrejevic
Date: Fri May 2 18:49:15 2014
New Revision: 63118
URL:
http://svn.reactos.org/svn/reactos?rev=63118&view=rev
Log:
[NTVDM]
Initialize the reference counts of the DOS console handles.
Modified:
branches/ntvdm/subsystems/ntvdm/dos/dos32krnl/dos.c
Modified: branches/ntvdm/subsystems/ntvdm/dos/dos32krnl/dos.c
URL:
http://svn.reactos.org/svn/reactos/branches/ntvdm/subsystems/ntvdm/dos/dos3…
==============================================================================
--- branches/ntvdm/subsystems/ntvdm/dos/dos32krnl/dos.c [iso-8859-1] (original)
+++ branches/ntvdm/subsystems/ntvdm/dos/dos32krnl/dos.c [iso-8859-1] Fri May 2 18:49:15
2014
@@ -2784,6 +2784,9 @@
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 */