search for: alloc_dir_failur

Displaying 1 result from an estimated 1 matches for "alloc_dir_failur".

Did you mean: alloc_dir_failure
2009 Mar 21
0
[PATCH 1/1] SYSLINUX/COMBOOT: Abstract searchdir and fix the opendir call
...ax + xchg eax,[si+file_sector] ; Get sector number and free file structure + jmp .pathwalk ; Walk the next bit of the path + + ; Found the desired directory; ZF set but EAX not 0 +.founddir: + and eax,eax ; Sector 0 is bad number + jz .notfound + call alloc_fill_dir ; re-allocate it + jnz .alloc_dir_failure + and eax,eax + ret + +.alloc_dir_failure: + xor eax,eax + ret + +.badfile: + xor eax,eax + mov [si],eax ; Free file structure + +.notfound: + xor eax,eax ; Zero out EAX + ret + +; +; searchdir: +; +; Open a file +; +; On entry: +; DS:DI = filename +; If successful: +; ZF cle...