text formatting

Signed-off-by: SergeySlice <isakov-sl@bk.ru>
This commit is contained in:
SergeySlice 2019-12-31 20:44:47 +03:00
parent 86ac98e9b9
commit 9345c5c5ee
2 changed files with 19 additions and 3 deletions

View File

@ -527,7 +527,21 @@
<key>Replace</key>
<data>SEQgNjQ1MA==</data>
</dict>
</array>
<dict>
<key>Comment</key>
<string>Patch 8 apples</string>
<key>Disabled</key>
<true/>
<key>Find</key>
<data>AQAAdSI=</data>
<key>MatchOS</key>
<string>10.13</string>
<key>Name</key>
<string>IOGraphicsFamily</string>
<key>Replace</key>
<data>AQAA6yI=</data>
</dict>
</array>
<key>KernelXCPM</key>
<false/>
<key>PanicNoKextDump</key>

View File

@ -642,7 +642,8 @@ typedef struct {
#define MKEXT_SIGNATURE 0x58534f4d
#define MKEXT_VERSION_1 0x00800001
int is_mkext_v1(LOADER_ENTRY *Entry, UINT8* drvPtr) {
int is_mkext_v1(LOADER_ENTRY *Entry, UINT8* drvPtr)
{
_DeviceTreeBuffer *dtb = (_DeviceTreeBuffer*) (((UINT8*)drvPtr) + sizeof(DeviceTreeNodeProperty));
MKextHeader* mkext_ptr = (MKextHeader*)(UINTN)(dtb->paddr);
@ -655,7 +656,8 @@ int is_mkext_v1(LOADER_ENTRY *Entry, UINT8* drvPtr) {
return 0;
}
void patch_mkext_v1(LOADER_ENTRY *Entry, UINT8 *drvPtr) {
void patch_mkext_v1(LOADER_ENTRY *Entry, UINT8 *drvPtr)
{
_DeviceTreeBuffer *dtb = (_DeviceTreeBuffer*) (((UINT8*)drvPtr) + sizeof(DeviceTreeNodeProperty));
MKextHeader* mkext_ptr = (MKextHeader*)(UINTN)dtb->paddr;