Skip to content
Snippets Groups Projects
Commit 929778fc authored by Thomas Faller's avatar Thomas Faller Committed by Michael Stefaniuc
Browse files

wine.inf: Set CurrentBuild always to the same value as CurrentBuildNumber.

Make that the registry entry

HKLM\Software\Microsoft\Windows NT\CurrentVersion\CurrentBuild

has always the same value as

HKLM\Software\Microsoft\Windows NT\CurrentVersion\CurrentBuildNumber

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=42870


Signed-off-by: default avatarThomas Faller <tfaller1@gmx.de>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
(cherry picked from commit 6c111899)
Signed-off-by: default avatarMichael Stefaniuc <mstefani@winehq.org>
parent c7bbcd46
No related branches found
No related tags found
No related merge requests found
......@@ -3402,6 +3402,7 @@ HKLM,"System\CurrentControlSet\Services\Winsock2\Parameters\Protocol_Catalog9\Ca
[VersionInfo]
HKLM,%CurrentVersionNT%,"CurrentVersion",2,"6.1"
HKLM,%CurrentVersionNT%,"CSDVersion",2,"Service Pack 1"
HKLM,%CurrentVersionNT%,"CurrentBuild",2,"7601"
HKLM,%CurrentVersionNT%,"CurrentBuildNumber",2,"7601"
HKLM,%CurrentVersionNT%,"CurrentType",2,"Uniprocessor Free"
HKLM,%CurrentVersionNT%,"ProductName",2,"Microsoft Windows 7"
......@@ -3412,6 +3413,7 @@ HKLM,%Control%\Session Manager\Environment,"OS",2,"Windows_NT"
[VersionInfo.ntamd64]
HKLM,%CurrentVersionNT%,"CurrentVersion",2,"6.1"
HKLM,%CurrentVersionNT%,"CSDVersion",2,"Service Pack 1"
HKLM,%CurrentVersionNT%,"CurrentBuild",2,"7601"
HKLM,%CurrentVersionNT%,"CurrentBuildNumber",2,"7601"
HKLM,%CurrentVersionNT%,"CurrentType",2,"Uniprocessor Free"
HKLM,%CurrentVersionNT%,"ProductName",2,"Microsoft Windows 7"
......
......@@ -435,6 +435,7 @@ static void on_winver_change(HWND dialog)
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, "CurrentBuild", 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, szKeyProdNT, "ProductType", NULL);
......@@ -449,6 +450,7 @@ static void on_winver_change(HWND dialog)
set_reg_key(HKEY_LOCAL_MACHINE, szKeyNT, "CurrentVersion", Buffer);
set_reg_key(HKEY_LOCAL_MACHINE, szKeyNT, "CSDVersion", win_versions[selection].szCSDVersion);
snprintf(Buffer, sizeof(Buffer), "%d", win_versions[selection].dwBuildNumber);
set_reg_key(HKEY_LOCAL_MACHINE, szKeyNT, "CurrentBuild", Buffer);
set_reg_key(HKEY_LOCAL_MACHINE, szKeyNT, "CurrentBuildNumber", Buffer);
snprintf(Buffer, sizeof(Buffer), "Microsoft %s", win_versions[selection].szDescription);
set_reg_key(HKEY_LOCAL_MACHINE, szKeyNT, "ProductName", Buffer);
......@@ -467,6 +469,7 @@ static void on_winver_change(HWND dialog)
case VER_PLATFORM_WIN32s:
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, "CurrentBuild", 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, szKeyProdNT, "ProductType", NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment