diff --git a/kernel/trunk/core/heap.inc b/kernel/trunk/core/heap.inc index 6f8dcd7626..9f7021dc57 100644 --- a/kernel/trunk/core/heap.inc +++ b/kernel/trunk/core/heap.inc @@ -635,7 +635,8 @@ proc kernel_free stdcall, base:dword pop esi ebx ret .fail: - and [heap_mutex], 0 + xor eax, eax + mov [heap_mutex], eax pop esi ebx ret endp diff --git a/kernel/trunk/core/peload.inc b/kernel/trunk/core/peload.inc index d0c844cd57..85fede96b6 100644 --- a/kernel/trunk/core/peload.inc +++ b/kernel/trunk/core/peload.inc @@ -321,6 +321,7 @@ __exports: user_free, 'UserFree', \ ; stdcall unmap_pages, 'UnmapPages', \ ; eax, ecx sys_msg_board_str, 'SysMsgBoardStr', \ + get_timer_ticks, 'GetTimerTicks', \ delay_hs, 'Delay', \ ; ebx set_mouse_data, 'SetMouseData'