From 6bb52d11ac2de9d0fc448cfecc327ae6bcc236de Mon Sep 17 00:00:00 2001 From: pathoswithin Date: Thu, 7 Jan 2016 10:06:05 +0000 Subject: [PATCH] fix empty file reading error git-svn-id: svn://kolibrios.org@6037 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/fs/fat.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/trunk/fs/fat.inc b/kernel/trunk/fs/fat.inc index ea04fc03cd..5fa6a2e4fa 100644 --- a/kernel/trunk/fs/fat.inc +++ b/kernel/trunk/fs/fat.inc @@ -1808,6 +1808,8 @@ fat_Read: mov ebx, [ebx+16] ; buffer push ebx push 0 + test ecx, ecx + jz .done mov eax, [edi+28] sub eax, edx jb .fileEnd