diff --git a/kernel/trunk/network/loopback.inc b/kernel/trunk/network/loopback.inc index f0147cc020..64ba77b0eb 100644 --- a/kernel/trunk/network/loopback.inc +++ b/kernel/trunk/network/loopback.inc @@ -127,6 +127,7 @@ LOOP_output: ja .too_large push ecx edi + add ecx, NET_BUFF.data stdcall NET_BUFF_alloc, ecx test eax, eax jz .out_of_ram diff --git a/kernel/trunk/network/stack.inc b/kernel/trunk/network/stack.inc index 49c1bf06ae..2e3c09065e 100644 --- a/kernel/trunk/network/stack.inc +++ b/kernel/trunk/network/stack.inc @@ -344,13 +344,11 @@ stack_handler: align 4 NET_BUFF_alloc: - add dword[esp+4], NET_BUFF.data jmp kernel_alloc align 4 NET_BUFF_free: - and dword[esp+4], not 0xfff jmp kernel_free