]> granicus.if.org Git - vim/commitdiff
patch 8.2.3164: MS-Windows: reported version lacks patchlevel v8.2.3164
authorBram Moolenaar <Bram@vim.org>
Thu, 15 Jul 2021 12:14:30 +0000 (14:14 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 15 Jul 2021 12:14:30 +0000 (14:14 +0200)
Problem:    MS-Windows: reported version lacks patchlevel, causing some update
            tools to update too often. (Klaus Frank)
Solution:   Add the patchlevel to the version. (Christian Brabandt)

src/dosinst.c
src/version.c

index 2d2b95c10a5edcd9b0248d8e104d0b947f6195cf..608f381f12c1dc75398e62d237765e691aee515f 100644 (file)
@@ -1580,6 +1580,7 @@ install_registry(void)
     char       display_name[BUFSIZE];
     char       uninstall_string[BUFSIZE];
     char       icon_string[BUFSIZE];
+    char       version_string[BUFSIZE];
     int                i;
     int                loop_count = is_64bit_os() ? 2 : 1;
     DWORD      flag;
@@ -1652,13 +1653,15 @@ install_registry(void)
 
     sprintf(icon_string, "%s\\gvim.exe,0", installdir);
 
+    sprintf(version_string, VIM_VERSION_SHORT "." VIM_VERSION_PATCHLEVEL_STR);
+
     lRet = register_uninstall(
        HKEY_LOCAL_MACHINE,
        "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Vim " VIM_VERSION_SHORT,
        display_name,
        uninstall_string,
        icon_string,
-       VIM_VERSION_SHORT,
+       version_string,
        "Bram Moolenaar et al.");
     if (ERROR_SUCCESS != lRet)
        return FAIL;
index edf5306f740be552550799abf8cf45e6f23c5c69..9d355c8ede1f2f105964f535c7a337ea0f7591d1 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3164,
 /**/
     3163,
 /**/