Ignore:
Timestamp:
Jul 6, 2002, 11:57:31 AM (23 years ago)
Author:
sandervl
Message:

Com overlapped IO changes for reference counts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/hmcomm.cpp

    r8652 r8844  
    1 /* $Id: hmcomm.cpp,v 1.36 2002-06-12 14:28:33 sandervl Exp $ */
     1/* $Id: hmcomm.cpp,v 1.37 2002-07-06 09:57:31 sandervl Exp $ */
    22
    33/*
     
    248248                    goto fail;
    249249                }
     250                if(handler[comnr] == NULL) {
     251                    ret = ERROR_NOT_ENOUGH_MEMORY;
     252                    goto fail;
     253                }
     254                handler[comnr]->AddRef();
    250255            }
    251256            pDevData->iohandler = handler[comnr];
     
    15741579    for(int i=0;i<MAX_COMPORTS;i++) {
    15751580        if(handler[i]) {
    1576             delete handler[i];
     1581            handler[i]->Release(TRUE);
    15771582            handler[i] = NULL;
    15781583        }
Note: See TracChangeset for help on using the changeset viewer.