1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-27 02:20:05 +00:00

Fixes for ZipFile, QuickTimeAudioFormat.

This commit is contained in:
Julian Storer 2010-10-02 17:10:06 +01:00
parent 0e2e4e7c3a
commit 098f0af3ed
15 changed files with 369 additions and 289 deletions

View file

@ -137,6 +137,7 @@ public:
static void copyChars (juce_wchar* const dest, const juce_wchar* const src, const size_t numChars) throw()
{
jassert (src != 0 & dest != 0);
memcpy (dest, src, numChars * sizeof (juce_wchar));
dest [numChars] = 0;
}
@ -2157,7 +2158,10 @@ int String::copyToCString (char* destBuffer, const int maxBufferSizeBytes) const
//==============================================================================
void String::copyToUnicode (juce_wchar* const destBuffer, const int maxCharsToCopy) const throw()
{
StringHolder::copyChars (destBuffer, text, jmin (maxCharsToCopy, length()));
jassert (destBuffer != 0 && maxCharsToCopy >= 0);
if (destBuffer != 0 && maxCharsToCopy >= 0)
StringHolder::copyChars (destBuffer, text, jmin (maxCharsToCopy, length()));
}