diff options
author | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2011-10-23 14:20:00 +0000 |
---|---|---|
committer | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2011-10-23 14:20:00 +0000 |
commit | 61e19e7ba5d4df6c36d8678d6c9fc4e1717495e1 (patch) | |
tree | 3be21d3d16537be43eb4d3d9ca7cb350cdf59180 /rtl/win/sysfile.inc | |
parent | 617f168eff34aa2caf977c7446658ecaadf02367 (diff) | |
download | fpc-61e19e7ba5d4df6c36d8678d6c9fc4e1717495e1.tar.gz |
* patch by Ludo Brands to fix #20481: GetFileType cannot be used on windows to determine if a handle is a console handle because the function does not distinguish between consoles and printers, resolves #20481
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19532 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'rtl/win/sysfile.inc')
-rw-r--r-- | rtl/win/sysfile.inc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/rtl/win/sysfile.inc b/rtl/win/sysfile.inc index 55d1f19f2e..96f569a778 100644 --- a/rtl/win/sysfile.inc +++ b/rtl/win/sysfile.inc @@ -20,11 +20,7 @@ function do_isdevice(handle:thandle):boolean; begin -{$ifndef WINCE} - do_isdevice:=(getfiletype(handle)=2); -{$else WINCE} do_isdevice:=(handle = StdInputHandle) or (handle = StdOutputHandle) or (handle = StdErrorHandle); -{$endif WINCE} end; |