fix who_wts

This commit is contained in:
Doug MacEachern 2005-10-10 17:00:30 +00:00
parent 22d942be9b
commit 7588002069
1 changed files with 4 additions and 2 deletions

View File

@ -2368,10 +2368,12 @@ static int sigar_who_wts(sigar_t *sigar,
&buffer,
&bytes))
{
DWORD type = *buffer;
int isConsole =
(*buffer == WTS_PROTOCOL_TYPE_CONSOLE);
sigar->wts_free(buffer);
if (type == WTS_PROTOCOL_TYPE_CONSOLE) {
if (isConsole) {
continue;
}
}