wpcap: Implement wsockinit.

oldstable
André Hentschel 2014-08-19 00:02:22 +02:00 committed by Alexandre Julliard
parent f0f57c22bf
commit b2962fb87e
3 changed files with 11 additions and 1 deletions

View File

@ -1,4 +1,5 @@
MODULE = wpcap.dll
DELAYIMPORTS = ws2_32
EXTRALIBS = @LIBPCAP@
C_SRCS = \

View File

@ -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;
}

View File

@ -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