fix in WIndows build
authorVictor Kirhenshtein <victor@netxms.org>
Wed, 14 Sep 2016 14:46:56 +0000 (17:46 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Wed, 14 Sep 2016 14:46:56 +0000 (17:46 +0300)
src/agent/core/nxagentd.vcproj
src/agent/core/tunnel.cpp

index 2d2affa..4e8c5a5 100644 (file)
                                RelativePath=".\trap.cpp"
                                >
                        </File>
+                       <File
+                               RelativePath=".\tunnel.cpp"
+                               >
+                       </File>
                        <File
                                RelativePath=".\upgrade.cpp"
                                >
index af65ade..4efa98c 100644 (file)
@@ -135,7 +135,7 @@ bool Tunnel::sendMessage(const NXCPMessage *msg)
       return false;
 
    NXCP_MESSAGE *data = msg->createMessage();
-   bool success = SendEx(m_socket, data, ntohl(data->size), 0, NULL);
+   bool success = (SendEx(m_socket, data, ntohl(data->size), 0, NULL) == ntohl(data->size));
    free(data);
    return success;
 }