Zebediah Figura : winecfg: Set the Current{Major, Minor}VersionNumber registry values.

Alexandre Julliard julliard at winehq.org
Mon Apr 20 15:48:19 CDT 2020


Module: wine
Branch: master
Commit: 7458092ec329fede4f64835769e214f72ffb3efc
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=7458092ec329fede4f64835769e214f72ffb3efc

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Sat Apr 18 12:50:29 2020 -0500

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 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/winecfg/appdefaults.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/programs/winecfg/appdefaults.c b/programs/winecfg/appdefaults.c
index 1ac2985a11..dd3480cd63 100644
--- a/programs/winecfg/appdefaults.c
+++ b/programs/winecfg/appdefaults.c
@@ -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, "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, "CurrentBuildNumber", 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,
                         version->dwMinorVersion);
             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);
             snprintf(Buffer, sizeof(Buffer), "%d", version->dwBuildNumber);
             set_reg_key(HKEY_LOCAL_MACHINE, szKeyNT, "CurrentBuild", Buffer);




More information about the wine-cvs mailing list