git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28760
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxCharBuffer inBuf((const char *)NULL);
if (nLength != npos)
{
wxCharBuffer inBuf((const char *)NULL);
if (nLength != npos)
{
+ wxASSERT_MSG( psz != NULL );
wxCharBuffer tmp(nLength);
memcpy(tmp.data(), psz, nLength);
tmp.data()[nLength] = '\0';
wxCharBuffer tmp(nLength);
memcpy(tmp.data(), psz, nLength);
tmp.data()[nLength] = '\0';
wxWCharBuffer inBuf((const wchar_t *)NULL);
if (nLength != npos)
{
wxWCharBuffer inBuf((const wchar_t *)NULL);
if (nLength != npos)
{
+ wxASSERT_MSG( pwz != NULL );
wxWCharBuffer tmp(nLength);
memcpy(tmp.data(), pwz, nLength * sizeof(wchar_t));
tmp.data()[nLength] = '\0';
wxWCharBuffer tmp(nLength);
memcpy(tmp.data(), pwz, nLength * sizeof(wchar_t));
tmp.data()[nLength] = '\0';