mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
winecfg: Set the Current{Major, Minor}VersionNumber registry values.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48959 Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
658183a803
commit
7458092ec3
1 changed files with 4 additions and 0 deletions
|
@ -416,6 +416,8 @@ static void set_winver(const struct win_version *version)
|
||||||
|
|
||||||
set_reg_key(HKEY_LOCAL_MACHINE, szKeyNT, "CSDVersion", NULL);
|
set_reg_key(HKEY_LOCAL_MACHINE, szKeyNT, "CSDVersion", NULL);
|
||||||
set_reg_key(HKEY_LOCAL_MACHINE, szKeyNT, "CurrentVersion", NULL);
|
set_reg_key(HKEY_LOCAL_MACHINE, szKeyNT, "CurrentVersion", NULL);
|
||||||
|
set_reg_key(HKEY_LOCAL_MACHINE, szKeyNT, "CurrentMajorVersionNumber", NULL);
|
||||||
|
set_reg_key(HKEY_LOCAL_MACHINE, szKeyNT, "CurrentMinorVersionNumber", NULL);
|
||||||
set_reg_key(HKEY_LOCAL_MACHINE, szKeyNT, "CurrentBuild", NULL);
|
set_reg_key(HKEY_LOCAL_MACHINE, szKeyNT, "CurrentBuild", NULL);
|
||||||
set_reg_key(HKEY_LOCAL_MACHINE, szKeyNT, "CurrentBuildNumber", NULL);
|
set_reg_key(HKEY_LOCAL_MACHINE, szKeyNT, "CurrentBuildNumber", NULL);
|
||||||
set_reg_key(HKEY_LOCAL_MACHINE, szKeyNT, "ProductName", NULL);
|
set_reg_key(HKEY_LOCAL_MACHINE, szKeyNT, "ProductName", NULL);
|
||||||
|
@ -429,6 +431,8 @@ static void set_winver(const struct win_version *version)
|
||||||
snprintf(Buffer, sizeof(Buffer), "%d.%d", version->dwMajorVersion,
|
snprintf(Buffer, sizeof(Buffer), "%d.%d", version->dwMajorVersion,
|
||||||
version->dwMinorVersion);
|
version->dwMinorVersion);
|
||||||
set_reg_key(HKEY_LOCAL_MACHINE, szKeyNT, "CurrentVersion", Buffer);
|
set_reg_key(HKEY_LOCAL_MACHINE, szKeyNT, "CurrentVersion", Buffer);
|
||||||
|
set_reg_key_dword(HKEY_LOCAL_MACHINE, szKeyNT, "CurrentMajorVersionNumber", version->dwMajorVersion);
|
||||||
|
set_reg_key_dword(HKEY_LOCAL_MACHINE, szKeyNT, "CurrentMinorVersionNumber", version->dwMinorVersion);
|
||||||
set_reg_key(HKEY_LOCAL_MACHINE, szKeyNT, "CSDVersion", version->szCSDVersion);
|
set_reg_key(HKEY_LOCAL_MACHINE, szKeyNT, "CSDVersion", version->szCSDVersion);
|
||||||
snprintf(Buffer, sizeof(Buffer), "%d", version->dwBuildNumber);
|
snprintf(Buffer, sizeof(Buffer), "%d", version->dwBuildNumber);
|
||||||
set_reg_key(HKEY_LOCAL_MACHINE, szKeyNT, "CurrentBuild", Buffer);
|
set_reg_key(HKEY_LOCAL_MACHINE, szKeyNT, "CurrentBuild", Buffer);
|
||||||
|
|
Loading…
Reference in a new issue