aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/devices.cc
diff options
context:
space:
mode:
authorTakashi Yano <takashi.yano@nifty.ne.jp>2024-02-16 03:35:07 +0900
committerTakashi Yano <takashi.yano@nifty.ne.jp>2024-02-16 04:06:01 +0900
commitf3ba4db2e2b2839ae368c413794ac15da407b9a4 (patch)
tree8b0dafcaefdf7991d6f6566545f75bfb820e92b3 /winsup/cygwin/devices.cc
parent4dd3dc876ca18ffdce88cbb422046cbe4bf23e12 (diff)
downloadnewlib-f3ba4db2e2b2839ae368c413794ac15da407b9a4.zip
newlib-f3ba4db2e2b2839ae368c413794ac15da407b9a4.tar.gz
newlib-f3ba4db2e2b2839ae368c413794ac15da407b9a4.tar.bz2
Cygwin: console: Fix a bug that 64th console cannot be handled.
Fixes: 930e553da8e9 ("Cygwin: console: Unify EnumWindows() callback functions."); Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
Diffstat (limited to 'winsup/cygwin/devices.cc')
-rw-r--r--winsup/cygwin/devices.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/devices.cc b/winsup/cygwin/devices.cc
index 5b67fd1..d4c003b 100644
--- a/winsup/cygwin/devices.cc
+++ b/winsup/cygwin/devices.cc
@@ -83,7 +83,7 @@ exists_console (const device& dev)
default:
if (dev.get_minor () < MAX_CONS_DEV)
{
- unsigned long bitmask = fhandler_console::console_unit (-1);
+ unsigned long bitmask = fhandler_console::console_unit (CONS_LIST_USED);
return !!(bitmask & (1UL << dev.get_minor ()));
}
return false;