Skip to content

Commit

Permalink
Reimplement Extrems' commit for UStealth support.
Browse files Browse the repository at this point in the history
  • Loading branch information
saulfabregwiivc authored Jun 24, 2022
1 parent f7cb2e6 commit 4f41b5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/partition.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ PARTITION* _FAT_partition_constructor_buf (const DISC_INTERFACE* disc, uint32_t
}

// Make sure it is a valid MBR or boot sector
if ( (sectorBuffer[BPB_bootSig_55] != 0x55) || (sectorBuffer[BPB_bootSig_AA] != 0xAA && sectorBuffer[BPB_bootSig_AA] != 0xAB)) {
if ((sectorBuffer[BPB_bootSig_55] != 0x55) || ((sectorBuffer[BPB_bootSig_AA] != 0xAA) && (sectorBuffer[BPB_bootSig_AA] != 0xAB))) {
return NULL;
}

Expand Down

0 comments on commit 4f41b5a

Please sign in to comment.