Changeset 148 for sbliveos2/trunk/drv16
- Timestamp:
- Apr 26, 2000, 8:01:02 PM (25 years ago)
- Location:
- sbliveos2/trunk/drv16
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sbliveos2/trunk/drv16/ioctl.cpp
r147 r148 202 202 PSTREAM pStream; 203 203 ULONG volume; 204 ULONG addr; 204 205 205 206 if (p->usIOCtlRequest != AUDIO_CHANGE) { … … 211 212 212 213 pAudChange = (LPMCI_AUDIO_CHANGE)p->pbRequestInfo; 213 214 if(DevHelp_VerifyAccess(SELECTOROF(pAudChange), sizeof(MCI_AUDIO_CHANGE), OFFSETOF(pAudChange), VERIFY_READONLY)) 215 { 214 215 //Test for MMPM/2 bug (structure crosses selector boundary) 216 addr = OFFSETOF(pAudChange); 217 addr += sizeof(MCI_AUDIO_CHANGE); 218 if(addr >= 0x10000UL) { 216 219 dprintf(("Invalid MCI_AUDIO_CHANGE pointer %lx!!", (ULONG)pAudChange)); 217 220 p->sReturnCode = INVALID_REQUEST; … … 220 223 } 221 224 pMasterVol = (LPMCI_TRACK_INFO)pAudChange->pvDevInfo; 222 if(DevHelp_VerifyAccess(SELECTOROF(pMasterVol), sizeof(MCI_TRACK_INFO), OFFSETOF(pMasterVol), VERIFY_READONLY)) 223 { 225 226 //Test for MMPM/2 bug (structure crosses selector boundary) 227 addr = OFFSETOF(pMasterVol); 228 addr += sizeof(MCI_TRACK_INFO); 229 if(addr >= 0x10000UL) { 224 230 dprintf(("Invalid MCI_TRACK_INFO pointer %lx!!", (ULONG)pMasterVol)); 225 231 p->sReturnCode = INVALID_REQUEST; -
sbliveos2/trunk/drv16/makefile.os2
r147 r148 142 142 143 143 clean: 144 del *.obj *.err *.lnk *.sys *.sym *.lst *.map *.wmap 144 del *.obj *.err *.lnk *.sys *.sym *.lst *.map *.wmap *.lrf -
sbliveos2/trunk/drv16/malloc.c
r142 r148 54 54 unsigned uMemFree; // N bytes available for allocation. 55 55 char __near 56 acHeap[HEAP_SIZE] ; // The heap. NOTE: This must be the last data definition in the HEAP segment,56 acHeap[HEAP_SIZE] = {0}; // The heap. NOTE: This must be the last data definition in the HEAP segment, 57 57 // although not done currently, we are planning to size the heap down at INIT 58 58 // time. If this is done, any vbls in the HEAP segment that
Note:
See TracChangeset
for help on using the changeset viewer.