Windows build warning removal, be more defensive in Windows tap driver code, and clean up service start/stop in installer.

This commit is contained in:
Adam Ierymenko 2015-05-19 18:13:20 -07:00
parent 68cb7ad4cd
commit c7eb5f0c81
3 changed files with 13 additions and 13 deletions

View file

@ -523,7 +523,7 @@ public:
{
TcpConnection *tc = reinterpret_cast<TcpConnection *>(*uptr);
if (tc->writeBuf.length()) {
long sent = _phy.tcpSend(sock,tc->writeBuf.data(),tc->writeBuf.length(),true);
long sent = (long)_phy.tcpSend(sock,tc->writeBuf.data(),(unsigned long)tc->writeBuf.length(),true);
if (sent > 0) {
tc->lastActivity = OSUtils::now();
if ((unsigned long)sent == (unsigned long)tc->writeBuf.length()) {