Fix wrong FAT32 jump opcode in its header

This commit is contained in:
Mounir IDRASSI committed 2017-05-28 00:04:29 +02:00
1 parent f94ceb7a97
commit a8e511c212
2 files changed
+3 -3

No files matched your search

+1 -1
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;
+2 -2
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;