* fix for bug #38021 based on patch by Sergey Larin

git-svn-id: trunk@47269 -
This commit is contained in:
Tomas Hajny 2020-11-01 16:46:52 +00:00
parent dbb0b24de8
commit 5c119d5f67

View File

@ -35,7 +35,7 @@ end;
procedure do_close(h : thandle);
begin
if do_isdevice(h) then
if (h=StdInputHandle) or (h=StdOutputHandle) or (h=StdErrorHandle) then
exit;
if CloseHandle(h)=0 then
Errno2InOutRes(GetLastError);