summaryrefslogtreecommitdiff
path: root/include/m_string.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/m_string.h')
-rw-r--r--include/m_string.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/m_string.h b/include/m_string.h
index ae5e245916..fd7ab6a235 100644
--- a/include/m_string.h
+++ b/include/m_string.h
@@ -1975,12 +1975,13 @@ public:
this->ReleaseBufferSetLength(nCurrentLength+nAppendLength);
}
- void FormatV(PCXSTR pszFormat, va_list args)
+ PCXSTR FormatV(PCXSTR pszFormat, va_list args)
{
int nLength = StringTraits::GetFormattedLength(pszFormat, args);
PXSTR pszBuffer = this->GetBuffer(nLength);
StringTraits::Format(pszBuffer, nLength+1, pszFormat, args);
this->ReleaseBufferSetLength(nLength);
+ return GetString();
}
// OLE BSTR support