VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Core
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2017-05-27 18:07:06 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-05-27 22:04:29 (GMT)
commita8e511c212af9fff1f8d5b4d2520aeaf4ecb6e4c (patch)
tree38a806eecc056c40bd0655e1ce0283862e187a2d /src/Core
parentf94ceb7a9772a4b68fa3d2eb95bb44c9aa8cc2fe (diff)
downloadVeraCrypt-a8e511c212af9fff1f8d5b4d2520aeaf4ecb6e4c.zip
VeraCrypt-a8e511c212af9fff1f8d5b4d2520aeaf4ecb6e4c.tar.gz
Fix wrong FAT32 jump opcode in its header
Diffstat (limited to 'src/Core')
-rw-r--r--src/Core/FatFormatter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Core/FatFormatter.cpp b/src/Core/FatFormatter.cpp
index 9fb54ff..a882e7a 100644
--- a/src/Core/FatFormatter.cpp
+++ b/src/Core/FatFormatter.cpp
@@ -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;