git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2200
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
/* prefix ~ */
if (nm[1] == SEP || nm[1] == 0)
{ /* ~/filename */
/* 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++;
if ((s = WXSTRINGCAST wxGetUserHome(_T(""))) != NULL) {
if (*++nm)
nm++;
was_sep = (*s == SEP);
nnm = *s ? s + 1 : s;
*s = 0;
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;
if ((home = WXSTRINGCAST wxGetUserHome(wxString(nm + 1))) == NULL) {
if (was_sep) /* replace only if it was there: */
*s = SEP;