fix who_wts
This commit is contained in:
parent
22d942be9b
commit
7588002069
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue