mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2025-02-02 22:51:28 +01:00
default bits for MaskFind will be 0xff
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
This commit is contained in:
parent
be7ab87dca
commit
d139fa4536
@ -1148,7 +1148,8 @@ FillinKextPatches (IN OUT KERNEL_AND_KEXT_PATCHES *Patches,
|
|||||||
if (TmpData == NULL || MaskLen == 0) {
|
if (TmpData == NULL || MaskLen == 0) {
|
||||||
Patches->KextPatches[Patches->NrKexts].MaskFind = NULL;
|
Patches->KextPatches[Patches->NrKexts].MaskFind = NULL;
|
||||||
} else {
|
} else {
|
||||||
Patches->KextPatches[Patches->NrKexts].MaskFind = AllocateZeroPool (FindLen);
|
Patches->KextPatches[Patches->NrKexts].MaskFind = AllocatePool (FindLen);
|
||||||
|
SetMem(Patches->KextPatches[Patches->NrKexts].MaskFind, 0xFF, FindLen);
|
||||||
CopyMem(Patches->KextPatches[Patches->NrKexts].MaskFind, TmpData, MaskLen);
|
CopyMem(Patches->KextPatches[Patches->NrKexts].MaskFind, TmpData, MaskLen);
|
||||||
}
|
}
|
||||||
FreePool(TmpData);
|
FreePool(TmpData);
|
||||||
@ -1264,7 +1265,8 @@ FillinKextPatches (IN OUT KERNEL_AND_KEXT_PATCHES *Patches,
|
|||||||
if (TmpData == NULL || MaskLen == 0) {
|
if (TmpData == NULL || MaskLen == 0) {
|
||||||
Patches->KernelPatches[Patches->NrKexts].MaskFind = NULL;
|
Patches->KernelPatches[Patches->NrKexts].MaskFind = NULL;
|
||||||
} else {
|
} else {
|
||||||
Patches->KernelPatches[Patches->NrKexts].MaskFind = AllocateZeroPool (FindLen);
|
Patches->KernelPatches[Patches->NrKexts].MaskFind = AllocatePool (FindLen);
|
||||||
|
SetMem(Patches->KernelPatches[Patches->NrKexts].MaskFind, 0xFF, FindLen);
|
||||||
CopyMem(Patches->KernelPatches[Patches->NrKexts].MaskFind, TmpData, MaskLen);
|
CopyMem(Patches->KernelPatches[Patches->NrKexts].MaskFind, TmpData, MaskLen);
|
||||||
}
|
}
|
||||||
FreePool(TmpData);
|
FreePool(TmpData);
|
||||||
@ -1365,7 +1367,8 @@ FillinKextPatches (IN OUT KERNEL_AND_KEXT_PATCHES *Patches,
|
|||||||
if (TmpData == NULL || MaskLen == 0) {
|
if (TmpData == NULL || MaskLen == 0) {
|
||||||
Patches->BootPatches[Patches->NrKexts].MaskFind = NULL;
|
Patches->BootPatches[Patches->NrKexts].MaskFind = NULL;
|
||||||
} else {
|
} else {
|
||||||
Patches->BootPatches[Patches->NrKexts].MaskFind = AllocateZeroPool (FindLen);
|
Patches->BootPatches[Patches->NrKexts].MaskFind = AllocatePool (FindLen);
|
||||||
|
SetMem(Patches->BootPatches[Patches->NrKexts].MaskFind, 0xFF, FindLen);
|
||||||
CopyMem(Patches->BootPatches[Patches->NrKexts].MaskFind, TmpData, MaskLen);
|
CopyMem(Patches->BootPatches[Patches->NrKexts].MaskFind, TmpData, MaskLen);
|
||||||
}
|
}
|
||||||
FreePool(TmpData);
|
FreePool(TmpData);
|
||||||
|
Loading…
Reference in New Issue
Block a user