0
0
mirror of https://github.com/vim/vim.git synced 2025-10-28 09:27:14 -04:00

patch 8.2.2959: sound_playfile() is not tested on MS-Windows

Problem:    sound_playfile() is not tested on MS-Windows.
Solution:   Make it work and enable the test. (Dominique Pellé, closes #8338)
This commit is contained in:
Dominique Pelle
2021-06-07 20:28:45 +02:00
committed by Bram Moolenaar
parent f7a023e580
commit 2f9c209ba0
3 changed files with 13 additions and 14 deletions

View File

@@ -355,10 +355,9 @@ f_sound_playevent(typval_T *argvars, typval_T *rettv)
if (wp == NULL)
return;
PlaySoundW(wp, NULL, SND_ASYNC | SND_ALIAS);
if (PlaySoundW(wp, NULL, SND_ASYNC | SND_ALIAS))
rettv->vval.v_number = ++sound_id;
free(wp);
rettv->vval.v_number = ++sound_id;
}
void