Ignore:
Timestamp:
Dec 4, 1999, 7:54:33 PM (26 years ago)
Author:
achimha
Message:

fixed async invocation bugs, added more debug output, cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wsock32/new/relaywin.cpp

    r1959 r1968  
    214214  //   WinDefWindowProc()
    215215
    216   pHM = RelayQuery(ulMsg);                          // find registered message
    217   if (pHM != NULL)                                  // message pair found
     216  /* find registered message */
     217  pHM = RelayQuery(ulMsg);
     218  /* message pair found */
     219  if (pHM != NULL)
    218220  {
    219221    rc = SHORT1FROMMP(mp2);                /* asynchronous operation result */
     222
     223    dprintf(("WSOCK32: RelayWindowProc, message %d for window %d with "
     224             "mp1 = %d and mp2 = %d (rc = %d) received\n",
     225             ulMsg, hwnd, mp1, mp2, rc));
    220226
    221227    /* check request type for special handling */
     
    270276        if (rc == 0)
    271277        {
     278          dprintf(("WSOCK32:RelayWindowProc, hostent buffer: %d\n", pHM->pvUserData1));
    272279          /* we need to convert the hostent structure here */
    273280          Whostent *WinHostent             = (Whostent*)pHM->pvUserData1;
     
    377384        break;
    378385      }
     386
     387      default:
     388      {
     389        dprintf(("WSOCK32:RelayWindowProc, Unknown request type!!!"
     390                 "window: %d, msg: %d, mp1 %d, mp2%d\n", pHM->hwnd,
     391                 pHM->ulMsg, mp1, mp2));
     392        break;
     393      }
    379394    }
    380395
     
    394409    // @@@PH
    395410    if (pHM->ulRequestType != ASYNCREQUEST_SELECT)
     411    {
     412      dprintf(("WSOCK32:RelayWindowProc, Free handle %d\n", pHM->ulMsg));
    396413      RelayFree(pHM->ulMsg);
     414    }
    397415
    398416    return FALSE;                                   // OK, message sent
     417  } else
     418  {
     419    dprintf(("WSOCK32:AsyncRelayWindowProc: Handle not found, message ignored\n"));
    399420  }
    400421
Note: See TracChangeset for help on using the changeset viewer.