diff --git a/boot/boot.asm b/boot/boot.asm index 93631ec..36c954f 100644 --- a/boot/boot.asm +++ b/boot/boot.asm @@ -266,7 +266,7 @@ next_entry: mov cx, 11 cmp byte [es:di], 0 ; if the first byte of the name is 0, jnz next_entry ; there is no more files in the directory - jc boot_error ; fail if not found + jmp boot_error ; fail if not found ffDone: push ax ; store first cluster number diff --git a/boot/oemboot.asm b/boot/oemboot.asm index 515b959..96aa48b 100644 --- a/boot/oemboot.asm +++ b/boot/oemboot.asm @@ -353,6 +353,7 @@ next_entry: mov cx, 11 jc boot_error ; fail if not found and si wraps cmp byte [si], 0 ; if the first byte of the name is 0, jnz next_entry ; there are no more files in the directory + jmp boot_error ffDone: mov [first_cluster], ax ; store first cluster number