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

Fixed scoping of a conditional

This commit is contained in:
tpoole 2016-11-30 11:03:55 +00:00
parent 2ec8fb49d7
commit 267cfb8966

View file

@ -1385,10 +1385,12 @@ public:
FUnknownPtr<IBStream> stateRefHolder (state); // just in case the caller hasn't properly ref-counted the stream object
if (state->seek (0, IBStream::kIBSeekSet, nullptr) == kResultTrue)
if (getHostType().isFruityLoops())
return readFromUnknownStream (state) ? kResultTrue : kResultFalse;
if (readFromMemoryStream (state) || readFromUnknownStream (state))
{
if (! getHostType().isFruityLoops() && readFromMemoryStream (state))
return kResultTrue;
if (readFromUnknownStream (state))
return kResultTrue;
}
return kResultFalse;
}