Skip to content

Commit 5ee0507

Browse files
committed
Fix wrong logic
1 parent 60bde0d commit 5ee0507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rEFIt_UEFI/Platform/kext_patcher.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ VOID CopyMemMask(UINT8 *Dest, UINT8 *Replace, UINT8 *Mask, UINTN SearchSize)
9696
for (Ind = 0; Ind < SearchSize; Ind++) {
9797
M = *Mask++;
9898
D = *Dest;
99-
*Dest++ = (((D ^ *Replace++) & M) ^ D) ^ M;
99+
*Dest++ = ((D ^ *Replace++) & M) ^ D;
100100
}
101101
}
102102

0 commit comments

Comments
 (0)