[NTVDM]: Fix usage of RtlCompareMemory.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 19 Sep 2015 14:02:22 +0000 (14:02 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 19 Sep 2015 14:02:22 +0000 (14:02 +0000)
svn path=/trunk/; revision=69287

reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/emsdrv.c

index 7eaab61..be8a0b3 100644 (file)
@@ -468,7 +468,7 @@ static VOID WINAPI EmsIntHandler(LPWORD Stack)
                     if (HandleTable[i].Allocated &&
                         RtlCompareMemory(HandleName,
                                          HandleTable[i].Name,
-                                         sizeof(HandleTable[i].Name)) != 0)
+                                         sizeof(HandleTable[i].Name)) == sizeof(HandleTable[i].Name))
                     {
                         HandleFound = &HandleTable[i];
                         break;