Changeset 769 for trunk/src/network/socket/qlocalsocket_win.cpp
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/src/network/socket/qlocalsocket_win.cpp
r651 r769 40 40 ****************************************************************************/ 41 41 42 #include "qlocalsocket.h"43 42 #include "qlocalsocket_p.h" 44 43 … … 109 108 state(QLocalSocket::UnconnectedState) 110 109 { 110 111 112 113 114 115 116 117 118 119 120 121 122 123 111 124 } 112 125 … … 389 402 d->pendingReadyRead = false; 390 403 d->pipeClosed = false; 391 DisconnectNamedPipe(d->handle); 392 CloseHandle(d->handle); 404 d->destroyPipeHandles(); 393 405 d->handle = INVALID_HANDLE_VALUE; 394 406 ResetEvent(d->overlapped.hEvent); … … 413 425 { 414 426 Q_D(QLocalSocket); 427 428 429 430 431 432 433 434 435 415 436 flush(); 416 437 if (d->pipeWriter && d->pipeWriter->bytesToWrite() != 0) { … … 525 546 { 526 547 Q_D(const QLocalSocket); 527 return (d->handle != INVALID_HANDLE_VALUE); 548 if (d->handle == INVALID_HANDLE_VALUE) 549 return false; 550 551 return PeekNamedPipe(d->handle, NULL, 0, NULL, NULL, NULL); 528 552 } 529 553
Note:
See TracChangeset
for help on using the changeset viewer.