Changeset 14828
- Timestamp:
- Sep 14, 2000, 9:09:17 PM (25 years ago)
- 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 birdExp $ */1 /* $Id: aspilib.cpp,v 1.4 2000-09-14 19:09:16 sandervl Exp $ */ 2 2 /* 3 3 * ASPI Router Library … … 30 30 //* * 31 31 //*************************************************************************** 32 scsiObj::scsiObj() 33 { 32 scsiObj::scsiObj() : buffer(NULL) 33 { 34 memset(&SRBlock, 0, sizeof(SRBlock)); 35 memset(&AbortSRB, 0, sizeof(AbortSRB)); 34 36 } 35 37 -
TabularUnified tags/trunk/src/wnaspi32/winaspi32.cpp ¶
r14823 r14828 1 /* $Id: winaspi32.cpp,v 1. 7 2000-09-13 21:00:51sandervl Exp $ */1 /* $Id: winaspi32.cpp,v 1.8 2000-09-14 19:09:17 sandervl Exp $ */ 2 2 /* 3 3 * WNASPI routines … … 263 263 bNumDrv = 0; 264 264 265 aspi = new scsiObj();265 aspi = new scsiObj(); 266 266 267 267 if( fGainDrvAccess( FALSE, &hmtxDriver) ) // Do nonblocking call for info … … 287 287 RegCloseKey( hkeyDrvInfo); 288 288 } 289 290 aspi->close(); 291 delete aspi; 289 aspi->close(); 292 290 } 293 291 else … … 326 324 } 327 325 } 326 delete aspi; 328 327 329 328 return ((brc << 8) | bNumDrv); /* FIXME: get # of host adapters installed */ … … 347 346 dprintf(("SendASPI32Command %x %d", lpSRB, lpSRB->common.SRB_Cmd)); 348 347 349 aspi = new scsiObj();350 351 348 // test first for a valid command 352 349 if( (SC_HA_INQUIRY!=lpSRB->common.SRB_Cmd) && … … 359 356 return SS_INVALID_SRB; // shoud be invalid command 360 357 } 358 359 aspi = new scsiObj(); 361 360 362 361 dwRC = SS_ERR; … … 424 423 425 424 fReleaseDrvAccess( hmtxDriver); 425 aspi->close(); 426 426 } 427 427 else … … 429 429 dwRC = SS_NO_ASPI; 430 430 } 431 aspi->close();432 431 delete aspi; 433 432 -
TabularUnified tags/trunk/src/wnaspi32/wnaspi32.def ¶
r11530 r14828 8 8 GetASPI32SupportInfo = _GetASPI32SupportInfo@0 @1 9 9 SendASPI32Command = _SendASPI32Command @2 ; CDECL 10 ; GetASPI32DLLVersion = 10 GetASPI32DLLVersion = _GetASPI32DLLVersion@0 @3 11 11 ; OrdinalOnlyExport 12 12
Note:
See TracChangeset
for help on using the changeset viewer.