From 620f7dbe70d54c3f1c718a4905169acb65af5f9f Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Sun, 18 Apr 2010 18:14:03 +0000 Subject: [PATCH] Maxis fixes: stupid bug in load_file() git-svn-id: svn://kolibrios.org@1452 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/dll.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/trunk/core/dll.inc b/kernel/trunk/core/dll.inc index 870f5ee3fa..68926ff4fc 100644 --- a/kernel/trunk/core/dll.inc +++ b/kernel/trunk/core/dll.inc @@ -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]