X-Git-Url: https://git.saurik.com/apple/mdnsresponder.git/blobdiff_plain/32bb7e43b766b4cf6c03ab11609bf9c164e40239..2682e09e0dbe18ba42fd4707b09a89e8c34f697c:/mDNSWindows/DLLStub/DLLStub.cpp diff --git a/mDNSWindows/DLLStub/DLLStub.cpp b/mDNSWindows/DLLStub/DLLStub.cpp index c39a747..38fd5e0 100755 --- a/mDNSWindows/DLLStub/DLLStub.cpp +++ b/mDNSWindows/DLLStub/DLLStub.cpp @@ -28,7 +28,7 @@ #include "DLLStub.h" -static int g_defaultErrorCode = kDNSServiceErr_Unknown; +static int g_defaultErrorCode = kDNSServiceErr_ServiceNotRunning; static DLLStub g_glueLayer; @@ -80,12 +80,12 @@ DLLStub::GetProcAddress( FARPROC * func, LPCSTR lpProcName ) } -int DNSSD_API +dnssd_sock_t DNSSD_API DNSServiceRefSockFD(DNSServiceRef sdRef) { typedef int (DNSSD_API * Func)(DNSServiceRef sdRef); static Func func = NULL; - int ret = -1; + int ret = INVALID_SOCKET; if ( DLLStub::GetProcAddress( ( FARPROC* ) &func, __FUNCTION__ ) ) { @@ -690,4 +690,4 @@ TXTRecordGetItemAtIndex } return ret; -} \ No newline at end of file +}