From 84dc0006665882aabc5a1ba9ef4de75dbefe3a92 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Wed, 5 Jul 2006 12:04:53 +0000 Subject: [PATCH] Return OS description for WinCE too. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40005 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/utils.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/msw/utils.cpp b/src/msw/utils.cpp index d94f52caa2..7409cd6c8f 100644 --- a/src/msw/utils.cpp +++ b/src/msw/utils.cpp @@ -1069,6 +1069,13 @@ wxString wxGetOsDescription() { 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: str = _("Win32s on Windows 3.1"); break; @@ -1132,7 +1139,7 @@ wxString wxGetOsDescription() break; } } - if ( wxIsEmpty(str) ) + if ( str.empty() ) { str.Printf(_("Windows NT %lu.%lu (build %lu"), info.dwMajorVersion, -- 2.50.0