diff --git a/gdb/mingw-hdep.c b/gdb/mingw-hdep.c index 75f63a3fe17..137a63eb244 100644 --- a/gdb/mingw-hdep.c +++ b/gdb/mingw-hdep.c @@ -385,7 +385,7 @@ sharing_input_terminal (int pid) len = GetConsoleProcessList (results.data (), results.size ()); /* Note that LEN == 0 is a failure, but we can treat it the same as a "no". */ - if (len < results.size ()) + if (len <= results.size ()) break; results.resize (len);