WinCE Standard SDK improvements including adding close button

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2004-05-27 11:31:12 +00:00
parent 0cfc2a92dc
commit a9928e9d1a
17 changed files with 142 additions and 76 deletions

View File

@@ -745,7 +745,9 @@ const wxChar *wxSysErrorMsg(unsigned long nErrCode)
0, NULL);
// copy it to our buffer and free memory
if( lpMsgBuf != 0 ) {
// Crashes on SmartPhone
#if !defined(__SMARTPHONE__)
if( lpMsgBuf != 0 ) {
wxStrncpy(s_szBuf, (const wxChar *)lpMsgBuf, WXSIZEOF(s_szBuf) - 1);
s_szBuf[WXSIZEOF(s_szBuf) - 1] = wxT('\0');
@@ -760,7 +762,9 @@ const wxChar *wxSysErrorMsg(unsigned long nErrCode)
s_szBuf[len - 2] = wxT('\0');
}
}
else {
else
#endif
{
s_szBuf[0] = wxT('\0');
}