fixed the problem in 2 last commits

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2006-10-19 12:12:40 +00:00
parent 03b5e90b0e
commit 522d32e508

View File

@ -1295,9 +1295,7 @@ wxChar *wxGetTempFileName(const wxString& prefix, wxChar *buf)
bool wxGetTempFileName(const wxString& prefix, wxString& buf)
{
#if wxUSE_FILE
wxChar *cbuf = wxGetTempFileName(prefix);
buf = cbuf;
delete [] buf;
buf = wxFileName::CreateTempFileName(prefix);
return !buf.empty();
#else // !wxUSE_FILE