Fixed the crash after selecting PCap in Settings when previously the network type was not set to PCap;

Properly fixed reset_menus() in win.c.
This commit is contained in:
OBattler
2017-08-22 14:43:59 +02:00
parent 1293bf1dce
commit 644e57c9e3
2 changed files with 9 additions and 7 deletions

View File

@@ -262,6 +262,7 @@ network_pcap_close(void)
/* OK, now shut down WinPcap itself. */
f_pcap_close(pc);
pc = pcap = NULL;
/* Unload the DLL if possible. */
if (pcap_handle != NULL) {
@@ -279,6 +280,7 @@ network_pcap_stop(void)
{
/* OK, now shut down WinPcap itself. */
f_pcap_close(pcap);
pcap = NULL;
/* Unload the DLL if possible. */
if (pcap_handle != NULL) {