mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-04 13:47:23 +01:00
* fix for bug #38021 based on patch by Sergey Larin
git-svn-id: trunk@47269 -
(cherry picked from commit 5c119d5f67)
This commit is contained in:
parent
9ad4acc8bd
commit
c4b2a0ac8b
@ -26,7 +26,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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user