Commit 91c2507d authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

If ARTS_WaveInit() failed then transmit the failure upstream in

ARTS_DriverProc().
parent 127b25df
......@@ -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);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment