Skip to content

Commit d139fa4

Browse files
committed
default bits for MaskFind will be 0xff
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
1 parent be7ab87 commit d139fa4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

rEFIt_UEFI/Platform/Settings.c

+6-3
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,8 @@ FillinKextPatches (IN OUT KERNEL_AND_KEXT_PATCHES *Patches,
11481148
if (TmpData == NULL || MaskLen == 0) {
11491149
Patches->KextPatches[Patches->NrKexts].MaskFind = NULL;
11501150
} else {
1151-
Patches->KextPatches[Patches->NrKexts].MaskFind = AllocateZeroPool (FindLen);
1151+
Patches->KextPatches[Patches->NrKexts].MaskFind = AllocatePool (FindLen);
1152+
SetMem(Patches->KextPatches[Patches->NrKexts].MaskFind, 0xFF, FindLen);
11521153
CopyMem(Patches->KextPatches[Patches->NrKexts].MaskFind, TmpData, MaskLen);
11531154
}
11541155
FreePool(TmpData);
@@ -1264,7 +1265,8 @@ FillinKextPatches (IN OUT KERNEL_AND_KEXT_PATCHES *Patches,
12641265
if (TmpData == NULL || MaskLen == 0) {
12651266
Patches->KernelPatches[Patches->NrKexts].MaskFind = NULL;
12661267
} else {
1267-
Patches->KernelPatches[Patches->NrKexts].MaskFind = AllocateZeroPool (FindLen);
1268+
Patches->KernelPatches[Patches->NrKexts].MaskFind = AllocatePool (FindLen);
1269+
SetMem(Patches->KernelPatches[Patches->NrKexts].MaskFind, 0xFF, FindLen);
12681270
CopyMem(Patches->KernelPatches[Patches->NrKexts].MaskFind, TmpData, MaskLen);
12691271
}
12701272
FreePool(TmpData);
@@ -1365,7 +1367,8 @@ FillinKextPatches (IN OUT KERNEL_AND_KEXT_PATCHES *Patches,
13651367
if (TmpData == NULL || MaskLen == 0) {
13661368
Patches->BootPatches[Patches->NrKexts].MaskFind = NULL;
13671369
} else {
1368-
Patches->BootPatches[Patches->NrKexts].MaskFind = AllocateZeroPool (FindLen);
1370+
Patches->BootPatches[Patches->NrKexts].MaskFind = AllocatePool (FindLen);
1371+
SetMem(Patches->BootPatches[Patches->NrKexts].MaskFind, 0xFF, FindLen);
13691372
CopyMem(Patches->BootPatches[Patches->NrKexts].MaskFind, TmpData, MaskLen);
13701373
}
13711374
FreePool(TmpData);

0 commit comments

Comments
 (0)