]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msdos/utilsdos.cpp
implement wxListCtrl::ScrollList() (in report view and vertical direction only) ...
[wxWidgets.git] / src / msdos / utilsdos.cpp
index 6f432f4f89f0063da418a9cd9b4f5a76cc11768e..ff4647668c0a9df96f65fbcede49785be908e43f 100644 (file)
@@ -211,14 +211,14 @@ const wxChar* wxGetHomeDir(wxString *home)
     return strDir.c_str();
 }
 
-wxChar *wxGetUserHome(const wxString& user)
+wxString wxGetUserHome(const wxString& user)
 {
-    static wxString home;
+    wxString home;
 
     if (user.empty() || user == wxGetUserId())
-        return wx_const_cast(wxChar*, wxGetHomeDir(&home));
-    else
-        return _T("");
+        wxGetHomeDir(&home);
+
+    return home;
 }
 
 // returns %UserName%, $USER or just "user"