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
No known key found for this signature in database
GPG Key ID: DD0C382D5FCFB8FC
2 changed files with 3 additions and 3 deletions

View File

@ -139,7 +139,7 @@ PutBoot (fatparams * ft, unsigned char *boot)
int cnt = 0;
boot[cnt++] = 0xeb; /* boot jump */
boot[cnt++] = 0x3c;
boot[cnt++] = (ft->size_fat == 32)? 0x58: 0x3c;
boot[cnt++] = 0x90;
memcpy (boot + cnt, "MSDOS5.0", 8); /* system id */
cnt += 8;

View File

@ -153,8 +153,8 @@ namespace VeraCrypt
{
int cnt = 0;
boot[cnt++] = 0xeb; /* boot jump */
boot[cnt++] = 0x3c;
boot[cnt++] = 0xeb; /* boot jump */
boot[cnt++] = (ft->size_fat == 32)? 0x58: 0x3c;
boot[cnt++] = 0x90;
memcpy (boot + cnt, "MSDOS5.0", 8); /* system id */
cnt += 8;