0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.1.1999: calling both PlaySoundW() and PlaySoundA()

Problem:    Calling both PlaySoundW() and PlaySoundA().
Solution:   Only use PlaySoundW(). (Dan Thompson, closes #4903)
This commit is contained in:
Bram Moolenaar 2019-09-07 14:50:49 +02:00
parent fbb3bc89b3
commit 1b33bee35e
2 changed files with 3 additions and 1 deletions

View File

@ -435,7 +435,7 @@ f_sound_stop(typval_T *argvars, typval_T *rettv UNUSED)
void void
f_sound_clear(typval_T *argvars UNUSED, typval_T *rettv UNUSED) f_sound_clear(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
{ {
PlaySound(NULL, NULL, 0); PlaySoundW(NULL, NULL, 0);
mciSendString("close all", NULL, 0, NULL); mciSendString("close all", NULL, 0, NULL);
} }

View File

@ -757,6 +757,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1999,
/**/ /**/
1998, 1998,
/**/ /**/