Author: hbelusca
Date: Fri Sep 25 22:42:08 2015
New Revision: 69358

URL: http://svn.reactos.org/svn/reactos?rev=69358&view=rev
Log:
[NTVDM]
- Fix a comment.
- Do not hardcode buffer size.
- LPVOID -> PVOID.

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/dos32krnl/dosfiles.c?rev=69358&r1=69357&r2=69358&view=diff
==============================================================================
--- 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 Sep 25 22:42:08 2015
@@ -725,7 +725,8 @@
 
                     Character = Sda->ByteBuffer;
 
-                    if (LineSize == 127 && Character != '\r' && Character != 
'\b')
+                    if (LineSize == sizeof(DosData->UnreadConInputBuffer)-1 &&
+                        Character != '\r' && Character != '\b')
                     {
                         /* Line buffer full */
                         // TODO: Should we beep?
@@ -843,7 +844,7 @@
     else
     {
         DWORD BytesRead32 = 0;
-        LPVOID LocalBuffer;
+        PVOID LocalBuffer;
 
         if (Count <= sizeof(StaticBuffer))
         {
@@ -913,7 +914,7 @@
     else
     {
         DWORD BytesWritten32 = 0;
-        LPVOID LocalBuffer;
+        PVOID LocalBuffer;
 
         /*
          * Writing zero bytes truncates or extends the file
@@ -1015,7 +1016,7 @@
         return Result;
     }
 
-    /* Update the descriptor */
+    /* Update the position */
     Descriptor->Position = FilePointer;
 
     /* Return the file pointer, if requested */


Reply via email to