* pinfo.cc (winpids::add): Increment nelem when winpid is true since we don't

care if it's a cygwin process in that case.
This commit is contained in:
Christopher Faylor 2005-12-22 05:26:14 +00:00
parent 3962fad137
commit 718dee922f
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-12-22 Christopher Faylor <cgf@timesys.com>
* pinfo.cc (winpids::add): Increment nelem when winpid is true since we
don't care if it's a cygwin process in that case.
2005-12-22 Christopher Faylor <cgf@timesys.com>
* pinfo.cc (winpids::release): Fix typo.

View File

@ -1214,8 +1214,9 @@ out:
p.destroy = false;
}
}
pidlist[nelem++] = pid;
}
if (p || winpid)
pidlist[nelem++] = pid;
}
DWORD