diff --git a/README.md b/README.md index 6df65be..376c7d7 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,9 @@ NOTE: It actually can also work on Win95/98 if you follow the extra procedure be # Revisions: +v.2023.07.24 +- Correctly report stereo CD separate channel volume control capability. + v.2023.06.01 - Fix MCI_PAUSE & MCI_RESUME when not playing. - Fix MCI_STATUS_LENGTH when time format is set to TMSF. diff --git a/ogg-winmm.c b/ogg-winmm.c index a2417a3..bc23471 100644 --- a/ogg-winmm.c +++ b/ogg-winmm.c @@ -128,8 +128,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) char *last = strrchr(music_path, '.'); if (last) { - *last = '\0'; - strcat(last, ".ini"); + strcpy(last, ".ini"); cddaVol = GetPrivateProfileInt("OGG-WinMM", "CDDAVolume", 100, music_path); midiVol = GetPrivateProfileInt("OGG-WinMM", "MIDIVolume", 100, music_path); @@ -860,7 +859,7 @@ MMRESULT WINAPI fake_auxGetDevCapsA(UINT_PTR uDeviceID, LPAUXCAPS lpCaps, UINT c lpCaps->vDriverVersion = 1; strcpy(lpCaps->szPname, "ogg-winmm virtual CD"); lpCaps->wTechnology = AUXCAPS_CDAUDIO; - lpCaps->dwSupport = AUXCAPS_VOLUME; + lpCaps->dwSupport = AUXCAPS_LRVOLUME | AUXCAPS_VOLUME; return MMSYSERR_NOERROR; }