From: Ove Kaaven Date: Fri, 16 Apr 1999 14:15:40 +0000 (+0000) Subject: Added a comment. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9aa521548da4b8333de615c0e30819e767ee87c9 Added a comment. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2200 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 6e7c62ada3..699b87b180 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -514,6 +514,7 @@ wxChar *wxExpandPath(wxChar *buf, const wxChar *name) /* prefix ~ */ if (nm[1] == SEP || nm[1] == 0) { /* ~/filename */ + // FIXME: wxGetUserHome could return temporary storage in Unicode mode if ((s = WXSTRINGCAST wxGetUserHome(_T(""))) != NULL) { if (*++nm) nm++; @@ -527,6 +528,7 @@ wxChar *wxExpandPath(wxChar *buf, const wxChar *name) was_sep = (*s == SEP); nnm = *s ? s + 1 : s; *s = 0; + // FIXME: wxGetUserHome could return temporary storage in Unicode mode if ((home = WXSTRINGCAST wxGetUserHome(wxString(nm + 1))) == NULL) { if (was_sep) /* replace only if it was there: */ *s = SEP;