diff --git a/desmume/src/windows/winpcap.h b/desmume/src/windows/winpcap.h index 6b7297072..06aaa2e6d 100644 --- a/desmume/src/windows/winpcap.h +++ b/desmume/src/windows/winpcap.h @@ -62,9 +62,14 @@ static void LoadWinPCap() LOADSYMBOL(pcap_open_live); LOADSYMBOL(pcap_close); LOADSYMBOL(pcap_setnonblock); - LOADSYMBOL(pcap_send); LOADSYMBOL(pcap_dispatch); + _pcap_send = (T_pcap_send)GetProcAddress(wpcap, "pcap_send"); + if (_pcap_send == NULL) + _pcap_send = (T_pcap_send)GetProcAddress(wpcap, "pcap_sendpacket"); + if (_pcap_send == NULL) + return; + bWinPCapAvailable = true; }