Various fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -923,6 +923,15 @@ int wxString::Printf(const char *pszFormat, ...)
|
||||
|
||||
int wxString::PrintfV(const char* pszFormat, va_list argptr)
|
||||
{
|
||||
#ifdef __BORLANDC__
|
||||
static char s_szScratch[1024];
|
||||
|
||||
int iLen = vsprintf(s_szScratch, pszFormat, argptr);
|
||||
AllocBeforeWrite(iLen);
|
||||
strcpy(m_pchData, s_szScratch);
|
||||
|
||||
return iLen;
|
||||
#else
|
||||
#ifdef __WXMSW__
|
||||
#ifdef _MSC_VER
|
||||
#define wxVsprintf _vsnprintf
|
||||
@@ -972,6 +981,7 @@ int wxString::PrintfV(const char* pszFormat, va_list argptr)
|
||||
free(buffer);
|
||||
|
||||
return iLen;
|
||||
#endif
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user