mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 16:14:09 +02:00
Added error checking for WSAStartup()
This commit is contained in:
parent
cdcac0d903
commit
38486640fd
@ -36,7 +36,8 @@ Application::Application(void)
|
|||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
WSADATA wsaData;
|
WSADATA wsaData;
|
||||||
WSAStartup(MAKEWORD(1, 1), &wsaData);
|
if (WSAStartup(MAKEWORD(1, 1), &wsaData) != 0)
|
||||||
|
throw Win32Exception("WSAStartup failed", WSAGetLastError());
|
||||||
#else /* _WIN32 */
|
#else /* _WIN32 */
|
||||||
LTDL_SET_PRELOADED_SYMBOLS();
|
LTDL_SET_PRELOADED_SYMBOLS();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user