Call Errno2inoutres for nativent failure calling NtClose inside do_close

git-svn-id: trunk@29096 -
This commit is contained in:
pierre 2014-11-20 22:37:25 +00:00
parent 90537e94a0
commit 8df8c22848

View File

@ -27,10 +27,17 @@ end;
procedure do_close(h : thandle);
var
res: LongInt;
begin
if do_isdevice(h) then
Exit;
NtClose(h);
res:=NtClose(h);
if res <> STATUS_SUCCESS then
begin
errno:=res;
Errno2InOutRes;
end;
end;