From 267cfb89663f37ad7ce079c65c9bf7b815be5bd9 Mon Sep 17 00:00:00 2001 From: tpoole Date: Wed, 30 Nov 2016 11:03:55 +0000 Subject: [PATCH] Fixed scoping of a conditional --- .../juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp index 4ecfa70332..5ccc777f76 100644 --- a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp @@ -1385,10 +1385,12 @@ public: FUnknownPtr 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; }