Ignore:
Timestamp:
Jun 14, 2007, 3:33:51 AM (18 years ago)
Author:
stevenhl
Message:

Make warnings away - SHL
Use drv16/midi_idc.h only - SHL
Add interrupts 16-23 - MF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sbliveos2/trunk/drv16/rm.cpp

    r178 r205  
    9999 *  allocate resources.
    100100 */
    101 ResourceManager::ResourceManager(ULONG pciId)
     101ResourceManager::ResourceManager(ULONG)
    102102{
    103103   APIRET rc;
     
    418418   int nResources;                     // Number of resources.
    419419   PRESOURCELIST pRL;                  // Return value, pointer to resource list
    420                                        // constructured in the heap.
     420                                       // constructed in the heap.
    421421   // Count up number of resources.
    422422   for ( i=0, nResources=0; i<MAX_ISA_Dev_IO; ++i) {
     
    438438
    439439   // Fill in resource list values.
    440    _fmemset( (PVOID) pRL, 0, nBytes );
     440   _fmemset( (PVOID) pRL, 0, nBytes );  // 13 Jun 07 SHL
    441441   pRL->Count = nResources;
    442442
     
    485485   }
    486486
    487    return pRL;
     487   return (NPRESOURCELIST)pRL;
    488488}
    489489
     
    652652{
    653653   APIRET rc;
     654   // 13 Jun 07 SHL fixme to check overflow even though unlikely
    654655   USHORT nBytes =
    655             sizeof(AHRESOURCE) + (sizeof(HRESOURCE) * pResourceList->Count);
     656            sizeof(AHRESOURCE) + (sizeof(HRESOURCE) * (USHORT)pResourceList->Count);
    656657   NPAHRESOURCE pahResource = (NPAHRESOURCE) malloc( nBytes );
    657658                                       // Handles for allocated resources are saved here.
Note: See TracChangeset for help on using the changeset viewer.