Skip to content
Snippets Groups Projects
Commit 6d4f4ac5 authored by Mike Hearn's avatar Mike Hearn Committed by Alexandre Julliard
Browse files

Normalize win2000, nt2k, nt2000 to win2k, normalize win2k3 to win2003

(spotted by Vincent Béron).
parent 9fd54b28
No related branches found
No related tags found
No related merge requests found
...@@ -64,6 +64,17 @@ initGeneralDlg (HWND hDlg) ...@@ -64,6 +64,17 @@ initGeneralDlg (HWND hDlg)
char *curDOSVer = getConfigValue("Version", "DOS", "6.22"); char *curDOSVer = getConfigValue("Version", "DOS", "6.22");
char *curWineLook = getConfigValue("Tweak.Layout", "WineLook", "win95"); char *curWineLook = getConfigValue("Tweak.Layout", "WineLook", "win95");
/* normalize the version strings */
if (!strcmp(curWinVer, "win2000") || !strcmp(curWinVer, "nt2k") || !strcmp(curWinVer, "nt2000")) {
free(curWinVer);
curWinVer = strdup("win2k");
}
if (!strcmp(curWinVer, "win2k3")) {
free(curWinVer);
curWinVer = strdup("win2003");
}
if ((pVer = getWinVersions ())) if ((pVer = getWinVersions ()))
{ {
for (i = 0; *pVer->szVersion; i++, pVer++) for (i = 0; *pVer->szVersion; i++, pVer++)
......
...@@ -34,8 +34,8 @@ static VERSION_DESC sWinVersions[] = { ...@@ -34,8 +34,8 @@ static VERSION_DESC sWinVersions[] = {
{"win98", "Windows 98"}, {"win98", "Windows 98"},
{"winme", "Windows ME"}, {"winme", "Windows ME"},
{"win2k", "Windows 2000"}, {"win2k", "Windows 2000"},
{"win2k3", "Windows 2003"},
{"winxp", "Windows XP"}, {"winxp", "Windows XP"},
{"win2003", "Windows 2003"},
{"", ""} {"", ""}
}; };
......
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