mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 21:49:11 +02:00
Call Errno2inoutres for nativent failure calling NtClose inside do_close
git-svn-id: trunk@29096 -
This commit is contained in:
parent
90537e94a0
commit
8df8c22848
@ -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;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user