]> granicus.if.org Git - vim/commitdiff
patch 8.1.1999: calling both PlaySoundW() and PlaySoundA() v8.1.1999
authorBram Moolenaar <Bram@vim.org>
Sat, 7 Sep 2019 12:50:49 +0000 (14:50 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 7 Sep 2019 12:50:49 +0000 (14:50 +0200)
Problem:    Calling both PlaySoundW() and PlaySoundA().
Solution:   Only use PlaySoundW(). (Dan Thompson, closes #4903)

src/sound.c
src/version.c

index 11170afb7ca0fa553d4eb338e96460e149af3bbf..c3052fd2432c05999308b0cf98559e5b205154fb 100644 (file)
@@ -435,7 +435,7 @@ f_sound_stop(typval_T *argvars, typval_T *rettv UNUSED)
     void
 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);
 }
 
index 634efd1de95406aad71287ee1cac1fb014852711..5ccaaec95af8fa8af9a5295f2306ae5a3ed3cc61 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1999,
 /**/
     1998,
 /**/