1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

Fix wrong FAT32 jump opcode in its header

This commit is contained in:
Mounir IDRASSI
2017-05-27 20:07:06 +02:00
parent f94ceb7a97
commit a8e511c212
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -153,8 +153,8 @@ 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;