소스 검색

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

git-svn-id: trunk@47269 -
Tomas Hajny 4 년 전
부모
커밋
5c119d5f67
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      rtl/win/sysfile.inc

+ 1 - 1
rtl/win/sysfile.inc

@@ -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);