From 297a69a4b5020a7c1cbd72db9a2fcd295c7afab8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Hentschel?= Date: Tue, 12 Aug 2014 00:34:45 +0200 Subject: [PATCH] wpcap: Implement pcap_compile. --- dlls/wpcap/wpcap.c | 7 +++++++ dlls/wpcap/wpcap.spec | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/dlls/wpcap/wpcap.c b/dlls/wpcap/wpcap.c index c1ff2e846b9..3ddc3c41a40 100644 --- a/dlls/wpcap/wpcap.c +++ b/dlls/wpcap/wpcap.c @@ -24,6 +24,13 @@ WINE_DEFAULT_DEBUG_CHANNEL(wpcap); WINE_DECLARE_DEBUG_CHANNEL(winediag); +int CDECL wine_pcap_compile(pcap_t *p, struct bpf_program *program, const char *buf, int optimize, + unsigned int mask) +{ + TRACE("(%p)\n", p); + return pcap_compile(p, program, buf, optimize, mask); +} + int CDECL wine_pcap_datalink(pcap_t *p) { TRACE("(%p)\n", p); diff --git a/dlls/wpcap/wpcap.spec b/dlls/wpcap/wpcap.spec index 33375540705..e52562a1348 100644 --- a/dlls/wpcap/wpcap.spec +++ b/dlls/wpcap/wpcap.spec @@ -8,7 +8,7 @@ @ stub install_bpf_program @ stub pcap_breakloop @ stub pcap_close -@ stub pcap_compile +@ cdecl pcap_compile(ptr ptr str long long) wine_pcap_compile @ stub pcap_compile_nopcap @ stub pcap_createsrcstr @ cdecl pcap_datalink(ptr) wine_pcap_datalink -- 2.11.4.GIT