From: Anton Baskanov baskanov@gmail.com
--- dlls/dmusic/instrument.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/dmusic/instrument.c b/dlls/dmusic/instrument.c index 2b75a276feb..d028600a65c 100644 --- a/dlls/dmusic/instrument.c +++ b/dlls/dmusic/instrument.c @@ -666,6 +666,8 @@ HRESULT instrument_create_from_soundfont(struct soundfont *soundfont, UINT index This = impl_from_IDirectMusicInstrument(iface);
This->header.Locale.ulBank = (preset->bank & 0x7f) | ((preset->bank << 1) & 0x7f00); + if (preset->bank == 128) + This->header.Locale.ulBank = F_INSTRUMENT_DRUMS; This->header.Locale.ulInstrument = preset->preset; MultiByteToWideChar(CP_ACP, 0, preset->name, strlen(preset->name) + 1, desc->wszName, sizeof(desc->wszName));