mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-10 21:23:40 +01:00
Fix wrong FAT32 jump opcode in its header
This commit is contained in:
parent
f94ceb7a97
commit
a8e511c212
@ -139,7 +139,7 @@ PutBoot (fatparams * ft, unsigned char *boot)
|
|||||||
int cnt = 0;
|
int cnt = 0;
|
||||||
|
|
||||||
boot[cnt++] = 0xeb; /* boot jump */
|
boot[cnt++] = 0xeb; /* boot jump */
|
||||||
boot[cnt++] = 0x3c;
|
boot[cnt++] = (ft->size_fat == 32)? 0x58: 0x3c;
|
||||||
boot[cnt++] = 0x90;
|
boot[cnt++] = 0x90;
|
||||||
memcpy (boot + cnt, "MSDOS5.0", 8); /* system id */
|
memcpy (boot + cnt, "MSDOS5.0", 8); /* system id */
|
||||||
cnt += 8;
|
cnt += 8;
|
||||||
|
@ -154,7 +154,7 @@ namespace VeraCrypt
|
|||||||
int cnt = 0;
|
int cnt = 0;
|
||||||
|
|
||||||
boot[cnt++] = 0xeb; /* boot jump */
|
boot[cnt++] = 0xeb; /* boot jump */
|
||||||
boot[cnt++] = 0x3c;
|
boot[cnt++] = (ft->size_fat == 32)? 0x58: 0x3c;
|
||||||
boot[cnt++] = 0x90;
|
boot[cnt++] = 0x90;
|
||||||
memcpy (boot + cnt, "MSDOS5.0", 8); /* system id */
|
memcpy (boot + cnt, "MSDOS5.0", 8); /* system id */
|
||||||
cnt += 8;
|
cnt += 8;
|
||||||
|
Loading…
Reference in New Issue
Block a user