- Bugzilla Bug 1340: fix of an incorrect RtlCompareMemory call in ntoskrnl (by w3seek)
[reactos.git] / reactos / ntoskrnl / io / pnpmgr.c
index b81ce25..182bccf 100644 (file)
@@ -608,7 +608,7 @@ IopGetBusTypeGuidIndex(LPGUID BusTypeGuid)
        /* Try to find a match */
        if (RtlCompareMemory(BusTypeGuid,
                             &IopBusTypeGuidList->Guids[i],
-                            sizeof(GUID)))
+                            sizeof(GUID)) == sizeof(GUID))
        {
            /* Found it */
            FoundIndex = i;