X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8bb6b2c057edbcc5b87f00a8af6ac70f6fd69727..9d5507f7a2701395e1d5c121bd877bb9066ee6ea:/src/palmos/utils.cpp diff --git a/src/palmos/utils.cpp b/src/palmos/utils.cpp index f1f40adad7..e0da4651b1 100644 --- a/src/palmos/utils.cpp +++ b/src/palmos/utils.cpp @@ -90,7 +90,7 @@ bool wxGetUserName(wxChar *buf, int maxSize) return false; } - wxStrncpy (buf, wxConvertMB2WX(id), maxSize - 1); + wxStrncpy (buf, wxSafeConvertMB2WX(id), maxSize - 1); // free the buffer MemPtrUnlock(id); @@ -103,9 +103,9 @@ const wxChar* wxGetHomeDir(wxString *pstr) return NULL; } -wxChar *wxGetUserHome(const wxString& WXUNUSED(user)) +wxString wxGetUserHome(const wxString& WXUNUSED(user)) { - return NULL; + return wxString(); } bool wxGetDiskSpace(const wxString& path, wxDiskspaceSize_t *pTotal, wxDiskspaceSize_t *pFree) @@ -127,6 +127,11 @@ bool wxSetEnv(const wxString& var, const wxChar *value) return false; } +bool wxUnsetEnv(const wxString& var) +{ + return false; +} + // ---------------------------------------------------------------------------- // process management // ---------------------------------------------------------------------------- @@ -197,6 +202,11 @@ void wxBell() SndPlaySystemSound(sndWarning); } +bool wxIsPlatform64Bit() +{ + return false; +} + wxString wxGetOsDescription() { wxString strOS = _T("PalmOS");