mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-10 09:40:53 +01:00
Fix wrong logic
This commit is contained in:
parent
60bde0db71
commit
5ee0507aca
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user