Skip to content
Permalink
Browse files

Win64 fixes (cast to DWORD_PTR instead of DWORD). Patch by Ozkan Sezer.

  Fixes Bugzilla #951.
  • Loading branch information
icculus committed Feb 16, 2010
1 parent 0a70201 commit f19c1ce17c3663b47ec61242040d6918999d1118
Showing with 3 additions and 3 deletions.
  1. +3 −3 native_midi/native_midi_win32.c
@@ -266,10 +266,10 @@ void native_midi_start(NativeMidiSong *song)
native_midi_stop();
if (!hMidiStream)
{
merr=midiStreamOpen(&hMidiStream,&MidiDevice,1,(DWORD)&MidiProc,0,CALLBACK_FUNCTION);
merr=midiStreamOpen(&hMidiStream,&MidiDevice,(DWORD)1,(DWORD_PTR)MidiProc,(DWORD_PTR)0,CALLBACK_FUNCTION);
if (merr!=MMSYSERR_NOERROR)
{
hMidiStream=0;
hMidiStream = NULL; // should I do midiStreamClose(hMidiStream) before?
return;
}
//midiStreamStop(hMidiStream);
@@ -291,7 +291,7 @@ void native_midi_stop()
midiStreamStop(hMidiStream);
midiStreamClose(hMidiStream);
currentsong=NULL;
hMidiStream = 0;
hMidiStream = NULL;
}

int native_midi_active()

0 comments on commit f19c1ce

Please sign in to comment.