Changeset 14828


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

bugfixes

Location:
tags/trunk/src/wnaspi32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified tags/trunk/src/wnaspi32/aspilib.cpp

    r14416 r14828  
    1 /* $Id: aspilib.cpp,v 1.3 2000-07-18 17:12:04 bird Exp $ */
     1/* $Id: aspilib.cpp,v 1.4 2000-09-14 19:09:16 sandervl Exp $ */
    22/*
    33 *  ASPI Router Library
     
    3030//*                                                                         *
    3131//***************************************************************************
    32 scsiObj::scsiObj()
    33 {
     32scsiObj::scsiObj() : buffer(NULL)
     33{
     34   memset(&SRBlock, 0, sizeof(SRBlock));
     35   memset(&AbortSRB, 0, sizeof(AbortSRB));
    3436}
    3537
  • TabularUnified tags/trunk/src/wnaspi32/winaspi32.cpp

    r14823 r14828  
    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
  • TabularUnified tags/trunk/src/wnaspi32/wnaspi32.def

    r11530 r14828  
    88  GetASPI32SupportInfo       = _GetASPI32SupportInfo@0         @1
    99  SendASPI32Command          = _SendASPI32Command              @2    ; CDECL
    10 ; GetASPI32DLLVersion        =
     10  GetASPI32DLLVersion        = _GetASPI32DLLVersion@0          @3
    1111; OrdinalOnlyExport
    1212
Note: See TracChangeset for help on using the changeset viewer.