зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
baa55535f0
Коммит
7ecde6730c
|
@ -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";
|
||||||
|
|
Загрузка…
Ссылка в новой задаче