Skip to content

Commit

Permalink
Compatibility fix for thread scheduling on Windows XP or later.
Browse files Browse the repository at this point in the history
  • Loading branch information
ayuanx committed Nov 12, 2024
1 parent a7f3e78 commit 85ef3de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ NOTE: It actually can also work on Win95/98 if you follow the extra procedure be

# Revisions:

v.2024.11.12
- Compatibility fix for thread scheduling on Windows XP or later.

v.2024.10.24
- Add an option to customize the music folder name.

Expand Down
3 changes: 2 additions & 1 deletion ogg-winmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
MCIERROR WINAPI fake_mciSendCommandA(MCIDEVICEID IDDevice, UINT uMsg, DWORD_PTR fdwCommand, DWORD_PTR dwParam)
{
char cmdbuf[1024];
dprintf("mciSendCommandA(IDDevice=%p, uMsg=%p, fdwCommand=%p, dwParam=%p)\n", IDDevice, uMsg, fdwCommand, dwParam);
dprintf("mciSendCommandA(IDDevice=%p, uMsg=%p, fdwCommand=%p, dwParam=%p) @ %04X\n", IDDevice, uMsg, fdwCommand, dwParam, GetTickCount());

if (fdwCommand & MCI_NOTIFY) {
dprintf(" MCI_NOTIFY\n");
Expand Down Expand Up @@ -350,6 +350,7 @@ MCIERROR WINAPI fake_mciSendCommandA(MCIDEVICEID IDDevice, UINT uMsg, DWORD_PTR
}
} else {
command = MCI_PLAY;
mode = MCI_MODE_PLAY;
SetEvent(event);
}
}
Expand Down

0 comments on commit 85ef3de

Please sign in to comment.