Skip to content

Commit

Permalink
Fix truncation of callback pointer on Windows
Browse files Browse the repository at this point in the history
Previously fixed ec709ef,
but reverted 8a4ac70
  • Loading branch information
cbrt64 authored and vLKp committed Oct 29, 2020
1 parent 6af0595 commit d7999c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/misc/hmp.cpp
Expand Up @@ -428,7 +428,7 @@ int hmp_play(hmp_file *hmp, int bLoop)

if ((rc = setup_buffers(hmp)))
return rc;
if ((midiStreamOpen(&hmp->hmidi, &hmp->devid,1, static_cast<DWORD>(reinterpret_cast<uintptr_t>(&midi_callback)), 0, CALLBACK_FUNCTION)) != MMSYSERR_NOERROR)
if ((midiStreamOpen(&hmp->hmidi, &hmp->devid, 1, reinterpret_cast<DWORD_PTR>(&midi_callback), 0, CALLBACK_FUNCTION)) != MMSYSERR_NOERROR)
{
hmp->hmidi = NULL;
return HMP_MM_ERR;
Expand Down

0 comments on commit d7999c9

Please sign in to comment.