MidiWinMM: fixed compiler warning

Pass 0 instead of NULL for 3rd and 4th argument of midiOutOpen().
This commit is contained in:
Tobias Doerffel
2010-12-05 23:29:01 +01:00
parent 625e70d50a
commit 8c4a8182ab

View File

@@ -328,7 +328,7 @@ void MidiWinMM::openDevices()
MIDIOUTCAPS c;
midiOutGetDevCaps( i, &c, sizeof( c ) );
HMIDIOUT hm = 0;
MMRESULT res = midiOutOpen( &hm, i, NULL, NULL, CALLBACK_NULL );
MMRESULT res = midiOutOpen( &hm, i, 0, 0, CALLBACK_NULL );
if( res == MMSYSERR_NOERROR )
{
m_outputDevices[hm] = qstrdup( c.szPname );