| 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", |