Signed-off-by: Andrew Eikum aeikum@codeweavers.com
On Tue, May 08, 2018 at 10:02:12PM +0900, Akihiro Sagawa wrote:
Signed-off-by: Akihiro Sagawa sagawa.aki@gmail.com
dlls/winmm/winmm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winmm/winmm.c b/dlls/winmm/winmm.c index 58a7672..b97580e 100644 --- a/dlls/winmm/winmm.c +++ b/dlls/winmm/winmm.c @@ -956,7 +956,7 @@ static DWORD MMSYSTEM_MidiStream_Convert(WINE_MIDIStream* lpMidiStrm, DWORD puls if (lpMidiStrm->dwTimeDiv == 0) { FIXME("Shouldn't happen. lpMidiStrm->dwTimeDiv = 0\n"); } else if (lpMidiStrm->dwTimeDiv > 0x8000) { /* SMPTE, unchecked FIXME? */
- int nf = -(char)HIBYTE(lpMidiStrm->dwTimeDiv); /* number of frames */
- int nf = 256 - HIBYTE(lpMidiStrm->dwTimeDiv); /* number of frames */ int nsf = LOBYTE(lpMidiStrm->dwTimeDiv); /* number of sub-frames */ ret = (pulse * 1000) / (nf * nsf); } else {