Fix GetExtendedTcpTable crash on vista sp0.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=77008
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
This commit is contained in:
Илья А. Ткаченко 2014-12-23 11:45:24 +03:00 committed by Ralf Habacker
parent 7afacaf653
commit bf79b97f87

View file

@ -146,7 +146,7 @@ static dbus_pid_t
get_pid_from_extended_tcp_table(int peer_port)
{
dbus_pid_t result;
DWORD errorCode, size, i;
DWORD errorCode, size = 0, i;
MIB_TCPTABLE_OWNER_PID *tcp_table;
if ((errorCode =