1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00

Fixed a VS compile problem.

This commit is contained in:
jules 2014-03-09 09:12:35 +00:00
parent 47aad5a8e7
commit d5cd1663db

View file

@ -766,7 +766,7 @@ public:
// Adobe Audition CS6 hack to avoid trying to use corrupted streams:
if (getHostType().isAdobeAudition())
if (s->getSize() >= 5 && memcmp (s->getData(), "VC2!E", 5) == 0)
return kResultFalse;
return false;
pluginInstance->setStateInformation (s->getData(), (int) s->getSize());
return true;
@ -785,9 +785,9 @@ public:
for (;;)
{
int32 bytesRead = 0;
Steinberg::int32 bytesRead = 0;
if (state->read (buffer, (int32) bytesPerBlock, &bytesRead) == kResultTrue && bytesRead > 0)
if (state->read (buffer, (Steinberg::int32) bytesPerBlock, &bytesRead) == kResultTrue && bytesRead > 0)
{
allData.write (buffer, bytesRead);
continue;