X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cdbce971ecd2a3f39ddcc56c0ef7769663fbdf23..9d5507f7a2701395e1d5c121bd877bb9066ee6ea:/src/palmos/utils.cpp?ds=sidebyside diff --git a/src/palmos/utils.cpp b/src/palmos/utils.cpp index 81db337f9b..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 // ----------------------------------------------------------------------------