pull/22/merge
Pavel Gushchin 9 years ago committed by GitHub
commit 2f42e1a7de

@ -92,11 +92,14 @@ BOOL CSoundFile::ReadFAR(const BYTE *lpStream, DWORD dwMemLength)
{
UINT szLen = stlen;
if (szLen > dwMemLength - dwMemPos) szLen = dwMemLength - dwMemPos;
if ((m_lpszSongComments = new char[szLen + 1]) != NULL)
{
memcpy(m_lpszSongComments, lpStream+dwMemPos, szLen);
try {
m_lpszSongComments = new char[szLen + 1];
memcpy(m_lpszSongComments, lpStream + dwMemPos, szLen);
m_lpszSongComments[szLen] = 0;
}
catch (std::bad_alloc& ba) {
}
dwMemPos += stlen;
}
// Reading orders

@ -13,6 +13,8 @@
#ifndef __SNDFILE_H
#define __SNDFILE_H
#include <new>
#ifdef UNDER_CE
int _strnicmp(const char *str1,const char *str2, int n);
#endif

Loading…
Cancel
Save