If ARTS_WaveInit() failed then transmit the failure upstream in

ARTS_DriverProc().
This commit is contained in:
Francois Gouget 2004-05-05 01:06:09 +00:00 committed by Alexandre Julliard
parent 127b25df49
commit 91c2507dd4
1 changed files with 1 additions and 5 deletions

View File

@ -73,9 +73,7 @@ LONG CALLBACK ARTS_DriverProc(DWORD dwDevID, HDRVR hDriv, DWORD wMsg,
switch(wMsg) {
#ifdef HAVE_ARTS
case DRV_LOAD: ARTS_WaveInit();
/* ARTS_MidiInit(); FIXME: no midi
support in artsc so we don't have any in the arts driver */
case DRV_LOAD: if (ARTS_WaveInit()<0) return 0;
return 1;
case DRV_FREE: return ARTS_WaveClose();
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);
}
}