Fix wrong logic

This commit is contained in:
Sergey Isakov 2019-10-10 22:04:12 +03:00
parent 60bde0db71
commit 5ee0507aca

View File

@ -96,7 +96,7 @@ VOID CopyMemMask(UINT8 *Dest, UINT8 *Replace, UINT8 *Mask, UINTN SearchSize)
for (Ind = 0; Ind < SearchSize; Ind++) {
M = *Mask++;
D = *Dest;
*Dest++ = (((D ^ *Replace++) & M) ^ D) ^ M;
*Dest++ = ((D ^ *Replace++) & M) ^ D;
}
}