Maxis fixes: stupid bug in load_file()

git-svn-id: svn://kolibrios.org@1452 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge) 2010-04-18 18:14:03 +00:00
parent 0d32c5bfec
commit 620f7dbe70

View File

@ -597,6 +597,8 @@ proc load_file stdcall, file_name:dword
stdcall kernel_alloc, [file_size]
mov [file], eax
test eax, eax
jz .fail
stdcall read_file, [file_name], eax, dword 0, [file_size]
cmp ebx, [file_size]