mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.3164: MS-Windows: reported version lacks patchlevel
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)
This commit is contained in:
parent
1557b16dad
commit
0894e0d808
@ -1580,6 +1580,7 @@ install_registry(void)
|
|||||||
char display_name[BUFSIZE];
|
char display_name[BUFSIZE];
|
||||||
char uninstall_string[BUFSIZE];
|
char uninstall_string[BUFSIZE];
|
||||||
char icon_string[BUFSIZE];
|
char icon_string[BUFSIZE];
|
||||||
|
char version_string[BUFSIZE];
|
||||||
int i;
|
int i;
|
||||||
int loop_count = is_64bit_os() ? 2 : 1;
|
int loop_count = is_64bit_os() ? 2 : 1;
|
||||||
DWORD flag;
|
DWORD flag;
|
||||||
@ -1652,13 +1653,15 @@ install_registry(void)
|
|||||||
|
|
||||||
sprintf(icon_string, "%s\\gvim.exe,0", installdir);
|
sprintf(icon_string, "%s\\gvim.exe,0", installdir);
|
||||||
|
|
||||||
|
sprintf(version_string, VIM_VERSION_SHORT "." VIM_VERSION_PATCHLEVEL_STR);
|
||||||
|
|
||||||
lRet = register_uninstall(
|
lRet = register_uninstall(
|
||||||
HKEY_LOCAL_MACHINE,
|
HKEY_LOCAL_MACHINE,
|
||||||
"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Vim " VIM_VERSION_SHORT,
|
"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Vim " VIM_VERSION_SHORT,
|
||||||
display_name,
|
display_name,
|
||||||
uninstall_string,
|
uninstall_string,
|
||||||
icon_string,
|
icon_string,
|
||||||
VIM_VERSION_SHORT,
|
version_string,
|
||||||
"Bram Moolenaar et al.");
|
"Bram Moolenaar et al.");
|
||||||
if (ERROR_SUCCESS != lRet)
|
if (ERROR_SUCCESS != lRet)
|
||||||
return FAIL;
|
return FAIL;
|
||||||
|
@ -755,6 +755,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 */
|
||||||
|
/**/
|
||||||
|
3164,
|
||||||
/**/
|
/**/
|
||||||
3163,
|
3163,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user