comparison libgaim/network.c @ 14897:e429c4ebbae5

[gaim-migrate @ 17669] Vista needs a bigger buffer for the NLA lookup stuff. This will fix network detection on Vista. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Sun, 05 Nov 2006 08:22:33 +0000
parents 717ea4589f8d
children f58283ce58ea
comparison
equal deleted inserted replaced
14896:fe184dbde619 14897:e429c4ebbae5
407 msg, errorid); 407 msg, errorid);
408 g_free(msg); 408 g_free(msg);
409 409
410 return -1; 410 return -1;
411 } else { 411 } else {
412 char buf[1024]; 412 char buf[4096];
413 WSAQUERYSET *res = (LPWSAQUERYSET) buf; 413 WSAQUERYSET *res = (LPWSAQUERYSET) buf;
414 DWORD size = sizeof(buf); 414 DWORD size = sizeof(buf);
415 while ((retval = WSALookupServiceNext(h, 0, &size, res)) == ERROR_SUCCESS) { 415 while ((retval = WSALookupServiceNext(h, 0, &size, res)) == ERROR_SUCCESS) {
416 net_cnt++; 416 net_cnt++;
417 gaim_debug_info("network", "found network '%s'\n", 417 gaim_debug_info("network", "found network '%s'\n",