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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user