wxGetCwd fixed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 1999-04-11 23:19:48 +00:00
parent 7fe4f50002
commit eac2aeb01e

View File

@ -1435,7 +1435,13 @@ char *wxGetWorkingDirectory(char *buf, int sz)
wxString wxGetCwd()
{
return wxString(wxGetWorkingDirectory());
static const size_t maxPathLen = 1024;
wxString str;
wxGetWorkingDirectory(str.GetWriteBuf(maxPathLen), maxPathLen);
str.UngetWriteBuf();
return str;
}
bool wxSetWorkingDirectory(const wxString& d)