[MMSYS] Play default sound when the volume trackbar is released.

This works on Windows XP but it might not work on ReactOS because of unimplemented features of PlaySound().
This commit is contained in:
Eric Kohl 2019-01-13 14:05:00 +01:00
parent 5cf2a78473
commit fcadedb306

View file

@ -472,7 +472,11 @@ VolumeDlgProc(HWND hwndDlg,
break;
case WM_NOTIFY:
if (((LPNMHDR)lParam)->code == (UINT)PSN_APPLY)
if (((LPNMHDR)lParam)->code == (UINT)NM_RELEASEDCAPTURE)
{
PlaySound((LPCTSTR)SND_ALIAS_SYSTEMDEFAULT, NULL, SND_ALIAS_ID | SND_ASYNC);
}
else if (((LPNMHDR)lParam)->code == (UINT)PSN_APPLY)
{
SaveData(hwndDlg);
}