diff options
author | Joerg Bornemann <joerg.bornemann@nokia.com> | 2011-04-01 16:35:28 (GMT) |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@nokia.com> | 2011-04-06 14:02:43 (GMT) |
commit | 4e9eb911ffc70959d81de01fe9fe4a704cafe3eb (patch) | |
tree | f2a43a21fbcc7ebf9de9f13036d3476d741d1970 /src/network/socket/qlocalsocket_win.cpp | |
parent | ec41d27565ed0b4d517f30563def135d0b4c7a8d (diff) | |
download | Qt-4e9eb911ffc70959d81de01fe9fe4a704cafe3eb.zip Qt-4e9eb911ffc70959d81de01fe9fe4a704cafe3eb.tar.gz Qt-4e9eb911ffc70959d81de01fe9fe4a704cafe3eb.tar.bz2 |
fix QLocalSocket::isValid() on Windows
This function always returned false, even if the socket was connected.
Task-number: QTBUG-18204
Reviewed-by: Martin Petersson
Diffstat (limited to 'src/network/socket/qlocalsocket_win.cpp')
-rw-r--r-- | src/network/socket/qlocalsocket_win.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/network/socket/qlocalsocket_win.cpp b/src/network/socket/qlocalsocket_win.cpp index 468bf8d..bd566a5 100644 --- a/src/network/socket/qlocalsocket_win.cpp +++ b/src/network/socket/qlocalsocket_win.cpp @@ -574,10 +574,7 @@ bool QLocalSocket::waitForDisconnected(int msecs) bool QLocalSocket::isValid() const { Q_D(const QLocalSocket); - if (d->handle == INVALID_HANDLE_VALUE) - return false; - - return PeekNamedPipe(d->handle, NULL, 0, NULL, NULL, NULL); + return d->handle != INVALID_HANDLE_VALUE; } bool QLocalSocket::waitForReadyRead(int msecs) |