Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/network/socket/qlocalserver_win.cpp

    r769 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    6666                 (const wchar_t *)fullServerName.utf16(), // pipe name
    6767                 PIPE_ACCESS_DUPLEX | FILE_FLAG_OVERLAPPED,       // read/write access
    68                  PIPE_TYPE_MESSAGE |       // message type pipe
    69                  PIPE_READMODE_MESSAGE |   // message-read mode
     68                 PIPE_TYPE_e type pipe
     69                 PIPE_READMODE_e-read mode
    7070                 PIPE_WAIT,                // blocking mode
    7171                 PIPE_UNLIMITED_INSTANCES, // max. instances
     
    8686        switch (GetLastError()) {
    8787        case ERROR_IO_PENDING:
     88
    8889            break;
    8990        case ERROR_PIPE_CONNECTED:
     91
    9092            SetEvent(eventHandle);
    9193            break;
     
    156158    for (int i = 0; i < listeners.size(); ) {
    157159        HANDLE handle = listeners[i].handle;
    158         if (GetOverlappedResult(handle, &listeners[i].overlapped, &dummy, FALSE)) {
     160        if (listeners[i].connected
     161            || GetOverlappedResult(handle, &listeners[i].overlapped, &dummy, FALSE))
     162        {
    159163            listeners.removeAt(i);
    160164
Note: See TracChangeset for help on using the changeset viewer.