Commit b2962fb8 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

wpcap: Implement wsockinit.

parent f0f57c22
MODULE = wpcap.dll
DELAYIMPORTS = ws2_32
EXTRALIBS = @LIBPCAP@
C_SRCS = \
......
......@@ -19,6 +19,7 @@
*/
#include <pcap/pcap.h>
#include "winsock2.h"
#include "windef.h"
#include "winbase.h"
#include "wine/debug.h"
......@@ -273,3 +274,11 @@ int CDECL wine_pcap_stats(pcap_t *p, struct pcap_stat *ps)
TRACE("(%p %p)\n", p, ps);
return pcap_stats(p, ps);
}
int CDECL wine_wsockinit(void)
{
WSADATA wsadata;
TRACE("()\n");
if (WSAStartup(MAKEWORD(1,1), &wsadata)) return -1;
return 0;
}
......@@ -75,4 +75,4 @@
@ cdecl pcap_stats(ptr ptr) wine_pcap_stats
@ stub pcap_stats_ex
@ stub pcap_strerror
@ stub wsockinit
@ cdecl wsockinit() wine_wsockinit
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment