Fixed include paths typo. Small improvement in linkedlist_isvalid

git-svn-id: svn://kolibrios.org@5036 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
gtament 2014-08-16 18:58:42 +00:00
parent 21cbeaec75
commit 2fe5245774
2 changed files with 6 additions and 7 deletions

View File

@ -46,11 +46,10 @@ linkedlist_delete:
ret ret
linkedlist_isvalid: ;eax - pointer to check; returns zero if valid linkedlist_isvalid: ;eax - pointer to check; returns zero if valid
inc ecx
test eax, eax
jz .valid_pointer ;actually, poiner is not valid
push ebx ecx push ebx ecx
xor ecx, ecx xor ecx, ecx
test eax, eax
jz .invalid_pointer
mov ebx, [head] mov ebx, [head]
.next_check: .next_check:
cmp eax, ebx cmp eax, ebx

View File

@ -22,10 +22,10 @@ __DEBUG_LEVEL__ = 1
node equ ftdi_context node equ ftdi_context
node.next equ ftdi_context.next_context node.next equ ftdi_context.next_context
include '../proc32.inc' include '../../proc32.inc'
include '../imports.inc' include '../../imports.inc'
include '../fdo.inc' include '../../fdo.inc'
include '../struct.inc' include '../../struct.inc'
public START public START
public version public version