Ignore:
Timestamp:
Sep 14, 2000, 9:09:17 PM (25 years ago)
Author:
sandervl
Message:

bugfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wnaspi32/winaspi32.cpp

    r4255 r4260  
    1 /* $Id: winaspi32.cpp,v 1.7 2000-09-13 21:00:51 sandervl Exp $ */
     1/* $Id: winaspi32.cpp,v 1.8 2000-09-14 19:09:17 sandervl Exp $ */
    22/*
    33 * WNASPI routines
     
    263263  bNumDrv = 0;
    264264
    265   aspi= new scsiObj();
     265  aspi = new scsiObj();
    266266
    267267  if( fGainDrvAccess( FALSE, &hmtxDriver) ) // Do nonblocking call for info
     
    287287          RegCloseKey( hkeyDrvInfo);
    288288        }
    289 
    290       aspi->close();
    291       delete aspi;
     289        aspi->close();
    292290    }
    293291    else
     
    326324    }
    327325  }
     326  delete aspi;
    328327
    329328  return ((brc << 8) | bNumDrv); /* FIXME: get # of host adapters installed */
     
    347346    dprintf(("SendASPI32Command %x %d", lpSRB, lpSRB->common.SRB_Cmd));
    348347
    349     aspi = new scsiObj();
    350 
    351348    // test first for a valid command
    352349    if( (SC_HA_INQUIRY!=lpSRB->common.SRB_Cmd) &&
     
    359356        return SS_INVALID_SRB; // shoud be invalid command
    360357    }
     358
     359    aspi = new scsiObj();
    361360
    362361    dwRC = SS_ERR;
     
    424423
    425424      fReleaseDrvAccess( hmtxDriver);
     425      aspi->close();
    426426    }
    427427    else
     
    429429      dwRC = SS_NO_ASPI;
    430430    }
    431     aspi->close();
    432431    delete aspi;
    433432
Note: See TracChangeset for help on using the changeset viewer.