Author: hbelusca
Date: Fri Dec 4 12:29:46 2015
New Revision: 70265
URL:
http://svn.reactos.org/svn/reactos?rev=70265&view=rev
Log:
[NTVDM]: "BytesRead is uninitialized in DosReadCharacter" (CID 1341427)
CORE-10644
Modified:
trunk/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/dosfiles.c
Modified: trunk/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/dosfiles.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/mvdm/ntvdm/dos/…
==============================================================================
--- trunk/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/dosfiles.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/dosfiles.c [iso-8859-1] Fri Dec 4
12:29:46 2015
@@ -844,6 +844,8 @@
PCHAR Pointer = FAR_POINTER(Buffer);
CHAR Character;
+ *BytesRead = 0;
+
while (*BytesRead < Count)
{
USHORT Amount = 1;