forked from KolibriOS/kolibrios
Maxis fixes: stupid bug in load_file()
git-svn-id: svn://kolibrios.org@1452 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
0d32c5bfec
commit
620f7dbe70
@ -597,6 +597,8 @@ proc load_file stdcall, file_name:dword
|
|||||||
|
|
||||||
stdcall kernel_alloc, [file_size]
|
stdcall kernel_alloc, [file_size]
|
||||||
mov [file], eax
|
mov [file], eax
|
||||||
|
test eax, eax
|
||||||
|
jz .fail
|
||||||
|
|
||||||
stdcall read_file, [file_name], eax, dword 0, [file_size]
|
stdcall read_file, [file_name], eax, dword 0, [file_size]
|
||||||
cmp ebx, [file_size]
|
cmp ebx, [file_size]
|
||||||
|
Loading…
Reference in New Issue
Block a user