mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-27 12:15:19 +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++) {
|
for (Ind = 0; Ind < SearchSize; Ind++) {
|
||||||
M = *Mask++;
|
M = *Mask++;
|
||||||
D = *Dest;
|
D = *Dest;
|
||||||
*Dest++ = (((D ^ *Replace++) & M) ^ D) ^ M;
|
*Dest++ = ((D ^ *Replace++) & M) ^ D;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user