X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/58ac79d31715b36a824ea11ca577babac9ad309d..bfad4a154618ba95472ccb6ebdd3aa9829c0ecd8:/src/common/utilscmn.cpp diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index deffb94e27..85e35c5082 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -436,8 +436,7 @@ bool wxGetEmailAddress(wxChar *address, int maxSize) if ( !email ) return false; - wxStrncpy(address, email, maxSize - 1); - address[maxSize - 1] = wxT('\0'); + wxStrlcpy(address, email.t_str(), maxSize); return true; } @@ -963,7 +962,11 @@ bool wxLaunchDefaultApplication(const wxString& document, int flags) WinStruct sei; sei.lpFile = document.wx_str(); sei.lpVerb = _T("open"); +#ifdef __WXWINCE__ + sei.nShow = SW_SHOWNORMAL; // SW_SHOWDEFAULT not defined under CE (#10216) +#else sei.nShow = SW_SHOWDEFAULT; +#endif // avoid Windows message box in case of error for consistency with // wxLaunchDefaultBrowser() even if don't show the error ourselves in this