summaryrefslogtreecommitdiff
path: root/protocols/YAMN/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-07-24 13:20:12 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-07-24 13:20:12 +0300
commit0db449bf70966941453cfbb8ec05fd430a96dc12 (patch)
treee01421e30b58ae2799929e16a6a326f5d4f68a5d /protocols/YAMN/src
parent30dad0388a14244ef9b06afc113085f6a49bcbb8 (diff)
useless member NETLIBOPENCONNECTION::cbSize removed
Diffstat (limited to 'protocols/YAMN/src')
-rw-r--r--protocols/YAMN/src/proto/netlib.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/YAMN/src/proto/netlib.cpp b/protocols/YAMN/src/proto/netlib.cpp
index 02fb6d3cdc..507b9b4051 100644
--- a/protocols/YAMN/src/proto/netlib.cpp
+++ b/protocols/YAMN/src/proto/netlib.cpp
@@ -92,11 +92,9 @@ void CNLClient::Connect(const char* servername, const int port) throw(DWORD)
DebugLog(CommFile, "<connect>\n");
#endif
try {
- NETLIBOPENCONNECTION nloc;
- nloc.cbSize = sizeof(NETLIBOPENCONNECTION);
+ NETLIBOPENCONNECTION nloc = {};
nloc.szHost = servername;
nloc.wPort = port;
- nloc.flags = 0;
if (nullptr == (hConnection = Netlib_OpenConnection(hNetlibUser, &nloc))) {
SystemError = WSAGetLastError();
throw NetworkError = (DWORD)ENL_CONNECT;