Call OSS_MidiInit() only if HAVE_OSS_MIDI is defined.

This commit is contained in:
Bang Jun-Young 2001-05-07 18:16:57 +00:00 committed by Alexandre Julliard
parent 31031abaa1
commit d52e89ac36
1 changed files with 5 additions and 1 deletions

View File

@ -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);