diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-09-06 20:19:41 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-09-06 20:19:41 -0700 |
commit | 1255a79e6522f36ccb61c62d09000c7121d88682 (patch) | |
tree | 68b856b2873cc7efb1e8545965efbb4a865da2e0 /pcap-win32.c | |
parent | 2eb2c22edf6f95c7650f50ac18a4519065cf607f (diff) |
Fix Windows build errors.
Diffstat (limited to 'pcap-win32.c')
-rw-r--r-- | pcap-win32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-win32.c b/pcap-win32.c index c1d24879..c1f8352c 100644 --- a/pcap-win32.c +++ b/pcap-win32.c @@ -406,7 +406,7 @@ pcap_sendqueue_transmit_win32(pcap_t *p, pcap_send_queue *queue, int sync) u_int res; char errbuf[PCAP_ERRBUF_SIZE+1]; - if (2->adapter==NULL) { + if (pw->adapter==NULL) { pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "Cannot transmit a queue to an offline capture or to a TurboCap port"); return (0); @@ -1221,7 +1221,7 @@ pcap_activate_win32(pcap_t *p) * all capture devices are regular OS network * interfaces.) */ - p->handle = adapter->hFile; + p->handle = pw->adapter->hFile; return (0); bad: |