Return OS description for WinCE too.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40005 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-07-05 12:04:53 +00:00
parent f0ac483feb
commit 84dc000666

View File

@@ -1069,6 +1069,13 @@ wxString wxGetOsDescription()
{ {
switch ( info.dwPlatformId ) switch ( info.dwPlatformId )
{ {
#ifdef VER_PLATFORM_WIN32_CE
case VER_PLATFORM_WIN32_CE:
str.Printf(_("Windows CE (%d.%d)"),
info.dwMajorVersion,
info.dwMinorVersion);
break;
#endif
case VER_PLATFORM_WIN32s: case VER_PLATFORM_WIN32s:
str = _("Win32s on Windows 3.1"); str = _("Win32s on Windows 3.1");
break; break;
@@ -1132,7 +1139,7 @@ wxString wxGetOsDescription()
break; break;
} }
} }
if ( wxIsEmpty(str) ) if ( str.empty() )
{ {
str.Printf(_("Windows NT %lu.%lu (build %lu"), str.Printf(_("Windows NT %lu.%lu (build %lu"),
info.dwMajorVersion, info.dwMajorVersion,