Call OSS_MidiInit() only if HAVE_OSS_MIDI is defined.
This commit is contained in:
parent
31031abaa1
commit
d52e89ac36
|
@ -57,7 +57,11 @@ LONG CALLBACK OSS_DriverProc(DWORD dwDevID, HDRVR hDriv, DWORD wMsg,
|
|||
|
||||
switch(wMsg) {
|
||||
#ifdef HAVE_OSS
|
||||
case DRV_LOAD: OSS_WaveInit(); OSS_MidiInit(); return 1;
|
||||
case DRV_LOAD: OSS_WaveInit();
|
||||
#ifdef HAVE_OSS_MIDI
|
||||
OSS_MidiInit();
|
||||
#endif
|
||||
return 1;
|
||||
case DRV_FREE: return 1;
|
||||
case DRV_OPEN: return OSS_drvOpen((LPSTR)dwParam1);
|
||||
case DRV_CLOSE: return OSS_drvClose(dwDevID);
|
||||
|
|
Loading…
Reference in New Issue