VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Boot/Windows/BootSector.asm
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-08-31 16:50:41 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 23:23:02 +0100
commite0efb36f337be3e57e528addd714e10745da6d1f (patch)
tree2647a8f0b30b088b8d5dd2f8dbaf0f874b13fce3 /src/Boot/Windows/BootSector.asm
parentef4355acf8106f7b25ac5ad319f440f05de502c1 (diff)
downloadVeraCrypt-e0efb36f337be3e57e528addd714e10745da6d1f.tar.gz
VeraCrypt-e0efb36f337be3e57e528addd714e10745da6d1f.zip
Revert previous modification on boad-loader decompressor because it increased its size and it became impossible to include it with the SERPENT version of bootloader. The decompressor and the compressed bootloader are copied twice (original and backup) in the 63 first sectors of the hard drive (32K), thus the size limitation.
This reverts commit 154235d589222e3c31cda05aa53e73ab69a89a6e.
Diffstat (limited to 'src/Boot/Windows/BootSector.asm')
-rw-r--r--src/Boot/Windows/BootSector.asm4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Boot/Windows/BootSector.asm b/src/Boot/Windows/BootSector.asm
index 1daaadac..74e8381b 100644
--- a/src/Boot/Windows/BootSector.asm
+++ b/src/Boot/Windows/BootSector.asm
@@ -134,8 +134,6 @@ checksum_ok:
push dx
; Decompress boot loader
- mov cx, word ptr [start + TC_BOOT_SECTOR_LOADER_LENGTH_OFFSET]
- push cx ; Compressed data size
push TC_BOOT_LOADER_COMPRESSED_BUFFER_OFFSET + TC_GZIP_HEADER_SIZE ; Compressed data
push TC_MAX_BOOT_LOADER_DECOMPRESSED_SIZE ; Output buffer size
push TC_BOOT_LOADER_DECOMPRESSOR_MEMORY_SIZE + TC_COM_EXECUTABLE_OFFSET ; Output buffer
@@ -147,7 +145,7 @@ checksum_ok:
retf
decompressor_ret:
- add sp, 8
+ add sp, 6
pop dx
; Restore boot sector segment