Skip to content

Commit

Permalink
Fix MIDI file open bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
ayuanx committed Jun 25, 2022
1 parent e81dee6 commit f5519f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ ogg-winmm also provides separate volume control for CDDA/MIDI/WAVE, which has be

# Revisions:

v.2022.06.26:
- Fix MIDI file open bypass.

v.2022.05.26:
- Remove unnecessary monitor thread.
- Thread calling convention fix.
Expand Down
1 change: 1 addition & 0 deletions ogg-winmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ MCIERROR WINAPI fake_mciSendCommandA(MCIDEVICEID IDDevice, UINT uMsg, DWORD_PTR
}
else return relay_mciSendCommandA(IDDevice, uMsg, fdwCommand, dwParam);
}
return relay_mciSendCommandA(IDDevice, uMsg, fdwCommand, dwParam);
} else if (IDDevice == MAGIC_DEVICEID || IDDevice == 0 || IDDevice == 0xFFFFFFFF) {
switch (uMsg) {
case MCI_CLOSE:
Expand Down

0 comments on commit f5519f7

Please sign in to comment.