revert libio-related changes from r3130 and do the fix in the correct place
git-svn-id: svn://kolibrios.org@3131 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -512,17 +512,11 @@ proc file.close _filed ;////////////////////////////////////////////////////////
|
||||
;;------------------------------------------------------------------------------------------------;;
|
||||
;# call `file.err` to obtain extended error information ;;
|
||||
;;================================================================================================;;
|
||||
cmp eax,32
|
||||
jb .exit_error
|
||||
mov eax, [_filed]
|
||||
mov [eax + InternalFileInfo.Mode], 0
|
||||
mov [eax + InternalFileInfo.FileName], 0
|
||||
invoke mem.free, eax
|
||||
xor eax, eax
|
||||
jmp @f
|
||||
.exit_error:
|
||||
or eax, -1
|
||||
@@:
|
||||
ret
|
||||
endp
|
||||
|
||||
|
Reference in New Issue
Block a user