[NTVDM]: Fix VDDInstallIOHook.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 24 Dec 2013 13:03:04 +0000 (13:03 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 24 Dec 2013 13:03:04 +0000 (13:03 +0000)
svn path=/branches/ntvdm/; revision=61369

subsystems/ntvdm/io.c

index ead1c72..3c6782f 100644 (file)
@@ -557,11 +557,12 @@ VDDInstallIOHook(HANDLE            hVdd,
             IoPortProc[i].IoHandlers.OutsD = NULL;
 
             /* Save our handlers */
-            IoPortProc[i].VddIoHandlers = *IOhandler; // IOhandler[i]; ?????????
+            IoPortProc[i].VddIoHandlers = *IOhandler;
         }
 
-        /* Go to next range */
+        /* Go to the next range */
         ++pPortRange;
+        ++IOhandler;
     }
 
     return TRUE;
@@ -601,7 +602,7 @@ VDDDeInstallIOHook(HANDLE            hVdd,
             ZeroMemory(&IoPortProc[i], sizeof(IoPortProc[i]));
         }
 
-        /* Go to next range */
+        /* Go to the next range */
         ++pPortRange;
     }
 }