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

(spotted by Vincent Béron).
This commit is contained in:
Mike Hearn 2003-09-16 01:08:02 +00:00 committed by Alexandre Julliard
parent 9fd54b2838
commit 6d4f4ac54e
2 changed files with 12 additions and 1 deletions

View File

@ -64,6 +64,17 @@ initGeneralDlg (HWND hDlg)
char *curDOSVer = getConfigValue("Version", "DOS", "6.22");
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 ()))
{
for (i = 0; *pVer->szVersion; i++, pVer++)

View File

@ -34,8 +34,8 @@ static VERSION_DESC sWinVersions[] = {
{"win98", "Windows 98"},
{"winme", "Windows ME"},
{"win2k", "Windows 2000"},
{"win2k3", "Windows 2003"},
{"winxp", "Windows XP"},
{"win2003", "Windows 2003"},
{"", ""}
};