Fix user-agent for Windows NT versions above 5.0. b=62663 r=valeski@netscape.com sr=mscott@netscape.com

This commit is contained in:
dbaron%fas.harvard.edu 2001-03-10 03:16:32 +00:00
Родитель baa55535f0
Коммит 7ecde6730c
1 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -733,8 +733,14 @@ nsHTTPHandler::InitUserAgentComponents()
else if (info.dwMajorVersion == 4) { else if (info.dwMajorVersion == 4) {
mAppOSCPU = "WinNT4.0"; mAppOSCPU = "WinNT4.0";
} }
else if (info.dwMajorVersion == 5) { else if (info.dwMajorVersion >= 5) {
mAppOSCPU = "Windows NT 5.0"; char *buf = PR_smprintf("Windows NT %ld.%ld",
info.dwMajorVersion,
info.dwMinorVersion);
if (buf) {
mAppOSCPU = buf;
PR_smprintf_free(buf);
}
} }
else { else {
mAppOSCPU = "WinNT"; mAppOSCPU = "WinNT";