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:
parent
0e2e4e7c3a
commit
098f0af3ed
15 changed files with 369 additions and 289 deletions
|
|
@ -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()));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue