winmm: MIDIHDR.dwOffset is set with MEVT_F_CALLBACK only.
commita8f1d2eb2f55f49fcbfe306946d37f3074eeab64
authorJörg Höhle <hoehle@users.sourceforge.net>
Tue, 16 Feb 2010 09:31:05 +0000 (16 10:31 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 22 Feb 2010 12:17:26 +0000 (22 13:17 +0100)
treef37cfdae7c73e51ce4a385f21665855b9225517e
parent63d0aeeafa24a2b62ffb917274468bd9a477ee71
winmm: MIDIHDR.dwOffset is set with MEVT_F_CALLBACK only.

At the same time, the change to the player loop prevents a buffer
overshoot and a (perhaps unlikely) program trace where a sequence
Suspend; Stop; midiStreamOut could send MOM_DONE twice and access
memory possibly released within a MOM_DONE DCB_FUNCTION callback.
dlls/winmm/winmm.c