Ignore:
Timestamp:
Nov 16, 1999, 11:03:56 PM (26 years ago)
Author:
phaller
Message:

Fix: error checking for request queue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wsock32/async.cpp

    r1726 r1761  
    1 /* $Id: async.cpp,v 1.14 1999-11-13 17:55:41 achimha Exp $ */
     1/* $Id: async.cpp,v 1.15 1999-11-16 22:03:56 phaller Exp $ */
    22
    33/*
     
    424424void WSAAsyncWorker::pushRequest(PASYNCREQUEST pNew)
    425425{
     426  if (pNew == NULL) // ensure proper parameters
     427    return;
     428
    426429  lockQueue();  // lock queue
    427430
     
    593596  PASYNCREQUEST pNew = new ASYNCREQUEST();
    594597
     598  if (pNew == NULL) // check for proper allocation
     599   return pNew;
     600
    595601  // fill the structure
    596602  pNew->pPrev          = NULL;
     
    14891495  // return (HANDLE)pRequest;
    14901496  // AH: WINE returns 0 on this call
    1491   //TODO: what about error handling? can the createRequest fail?
    14921497  return 0;
    14931498}
Note: See TracChangeset for help on using the changeset viewer.