Changeset 178 for sbliveos2/trunk/drv16/init.cpp
- Timestamp:
- Apr 30, 2001, 11:08:00 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sbliveos2/trunk/drv16/init.cpp
r176 r178 74 74 static char NEWLINE[] = "\r\n"; 75 75 static char szSBLiveNotFound[] = "SB Live! hardware not detected!"; 76 static char szSBLiveAllocResFailed1[] = "Another device driver was granted exclusive access to IRQ "; 77 static char szSBLiveAllocResFailed2[] = "Unable to allocate hardware resources! Aborting..."; 76 78 static char szSBLiveConfig1[] = "SB Live! configuration: IRQ "; 77 79 static char szSBLiveConfig2[] = ", IO Port 0x"; … … 157 159 if ((!pResources) || pResources->isEmpty()) { 158 160 goto hardware_notfound; 161 } 162 if (pRM->getState() == rmAllocFailed) { 163 USHORT result; 164 165 DosWrite(1, (VOID FAR*)szSBLiveAllocResFailed1, sizeof(szSBLiveAllocResFailed1)-1, &result); 166 DecWordToASCII(digit, (USHORT)pResources->uIRQLevel[0], 0); 167 DosWrite(1, (VOID FAR*)digit, strlen(digit), &result); 168 DosWrite(1, (VOID FAR*)NEWLINE, sizeof(NEWLINE)-1, &result); 169 DosWrite(1, (VOID FAR*)szSBLiveAllocResFailed2, sizeof(szSBLiveAllocResFailed2)-1, &result); 170 DosWrite(1, (VOID FAR*)NEWLINE, sizeof(NEWLINE)-1, &result); 171 DosWrite(1, (VOID FAR*)NEWLINE, sizeof(NEWLINE)-1, &result); 172 return; 159 173 } 160 174
Note:
See TracChangeset
for help on using the changeset viewer.