Recognize Windows 7 and Server 2008 versions in wxGetOsDescription().
Use marketing names for these systems instead of just describing them as "Window NT x.y". Closes #13220. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
a699420104
commit
7c7eed5656
@ -1298,10 +1298,33 @@ wxString wxGetOsDescription()
|
||||
break;
|
||||
|
||||
case 6:
|
||||
if ( info.dwMinorVersion == 0 )
|
||||
switch ( info.dwMinorVersion )
|
||||
{
|
||||
str.Printf(_("Windows Vista (build %lu"),
|
||||
info.dwBuildNumber);
|
||||
case 0:
|
||||
if ( wxIsWindowsServer() == 1 )
|
||||
{
|
||||
str.Printf(_("Windows Server 2008 (build %lu"),
|
||||
info.dwBuildNumber);
|
||||
}
|
||||
else
|
||||
{
|
||||
str.Printf(_("Windows Vista (build %lu"),
|
||||
info.dwBuildNumber);
|
||||
}
|
||||
break;
|
||||
|
||||
case 1:
|
||||
if ( wxIsWindowsServer() == 1 )
|
||||
{
|
||||
str.Printf(_("Windows Server 2008 R2 (build %lu"),
|
||||
info.dwBuildNumber);
|
||||
}
|
||||
else
|
||||
{
|
||||
str.Printf(_("Windows 7 (build %lu"),
|
||||
info.dwBuildNumber);
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user