dmusic: Constify a variable.
This commit is contained in:
parent
b2e2793e28
commit
ab683fee33
|
@ -187,7 +187,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
/* dwPatch from MIDILOCALE */
|
/* dwPatch from MIDILOCALE */
|
||||||
DWORD MIDILOCALE2Patch (LPMIDILOCALE pLocale) {
|
DWORD MIDILOCALE2Patch (const MIDILOCALE *pLocale) {
|
||||||
DWORD dwPatch = 0;
|
DWORD dwPatch = 0;
|
||||||
if (!pLocale) return 0;
|
if (!pLocale) return 0;
|
||||||
dwPatch |= (pLocale->ulBank & F_INSTRUMENT_DRUMS); /* set drum bit */
|
dwPatch |= (pLocale->ulBank & F_INSTRUMENT_DRUMS); /* set drum bit */
|
||||||
|
|
|
@ -266,7 +266,7 @@ typedef struct {
|
||||||
#define GE(x) { &x, #x }
|
#define GE(x) { &x, #x }
|
||||||
|
|
||||||
/* dwPatch from MIDILOCALE */
|
/* dwPatch from MIDILOCALE */
|
||||||
extern DWORD MIDILOCALE2Patch (LPMIDILOCALE pLocale);
|
extern DWORD MIDILOCALE2Patch (const MIDILOCALE *pLocale);
|
||||||
/* MIDILOCALE from dwPatch */
|
/* MIDILOCALE from dwPatch */
|
||||||
extern void Patch2MIDILOCALE (DWORD dwPatch, LPMIDILOCALE pLocale);
|
extern void Patch2MIDILOCALE (DWORD dwPatch, LPMIDILOCALE pLocale);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue