diff options
author | Benoit Foucher <benoit@zeroc.com> | 2018-11-15 08:24:20 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2018-11-15 08:24:20 +0100 |
commit | 1ced32aaad9731c1fc14e232dc6463159b3d48d5 (patch) | |
tree | 6cafbc5c62c564dfe7a0d27c2f6254c3485c2264 /cpp/src/IceSSL/UWPTransceiverI.cpp | |
parent | Set slice output to avoid warning with Android Studio (diff) | |
download | ice-1ced32aaad9731c1fc14e232dc6463159b3d48d5.tar.bz2 ice-1ced32aaad9731c1fc14e232dc6463159b3d48d5.tar.xz ice-1ced32aaad9731c1fc14e232dc6463159b3d48d5.zip |
Fixed SOCKET_ERROR assignement with DWORD, fixes #267
Diffstat (limited to 'cpp/src/IceSSL/UWPTransceiverI.cpp')
-rw-r--r-- | cpp/src/IceSSL/UWPTransceiverI.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/IceSSL/UWPTransceiverI.cpp b/cpp/src/IceSSL/UWPTransceiverI.cpp index 2afd9ad0e59..e357f284cc3 100644 --- a/cpp/src/IceSSL/UWPTransceiverI.cpp +++ b/cpp/src/IceSSL/UWPTransceiverI.cpp @@ -289,7 +289,7 @@ UWP::TransceiverI::finishWrite(IceInternal::Buffer& buf) if(_connected && !_upgraded) { IceInternal::AsyncInfo* asyncInfo = getNativeInfo()->getAsyncInfo(IceInternal::SocketOperationWrite); - if(asyncInfo->count == SOCKET_ERROR) + if(asyncInfo->error != ERROR_SUCCESS) { if(CERT_E_CN_NO_MATCH == asyncInfo->error) { @@ -368,9 +368,9 @@ UWP::TransceiverI::setBufferSize(int rcvSize, int sndSize) } UWP::TransceiverI::TransceiverI(const InstancePtr& instance, - const IceInternal::TransceiverPtr& delegate, - const string& hostOrAdapterName, - bool incoming) : + const IceInternal::TransceiverPtr& delegate, + const string& hostOrAdapterName, + bool incoming) : _instance(instance), _engine(UWP::SSLEnginePtr::dynamicCast(instance->engine())), _host(incoming ? "" : hostOrAdapterName), |