If ARTS_WaveInit() failed then transmit the failure upstream in
ARTS_DriverProc().
This commit is contained in:
parent
127b25df49
commit
91c2507dd4
|
@ -73,9 +73,7 @@ LONG CALLBACK ARTS_DriverProc(DWORD dwDevID, HDRVR hDriv, DWORD wMsg,
|
||||||
|
|
||||||
switch(wMsg) {
|
switch(wMsg) {
|
||||||
#ifdef HAVE_ARTS
|
#ifdef HAVE_ARTS
|
||||||
case DRV_LOAD: ARTS_WaveInit();
|
case DRV_LOAD: if (ARTS_WaveInit()<0) return 0;
|
||||||
/* ARTS_MidiInit(); FIXME: no midi
|
|
||||||
support in artsc so we don't have any in the arts driver */
|
|
||||||
return 1;
|
return 1;
|
||||||
case DRV_FREE: return ARTS_WaveClose();
|
case DRV_FREE: return ARTS_WaveClose();
|
||||||
case DRV_OPEN: return ARTS_drvOpen((LPSTR)dwParam1);
|
case DRV_OPEN: return ARTS_drvOpen((LPSTR)dwParam1);
|
||||||
|
@ -91,5 +89,3 @@ support in artsc so we don't have any in the arts driver */
|
||||||
return DefDriverProc(dwDevID, hDriv, wMsg, dwParam1, dwParam2);
|
return DefDriverProc(dwDevID, hDriv, wMsg, dwParam1, dwParam2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue