From 97fdc233e6f0dd04767c31bcafaa8902b70c260b Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 10 Jul 2017 10:08:12 +0100 Subject: [PATCH] Avoided a problem with the win32 video module if JUCE_MODAL_LOOPS_PERMITTED is disabled --- modules/juce_video/native/juce_win32_Video.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/juce_video/native/juce_win32_Video.h b/modules/juce_video/native/juce_win32_Video.h index dd1ca00faa..f71f9cd385 100644 --- a/modules/juce_video/native/juce_win32_Video.h +++ b/modules/juce_video/native/juce_win32_Video.h @@ -483,10 +483,12 @@ private: if (FAILED (hr)) { + #if JUCE_MODAL_LOOPS_PERMITTED // Annoyingly, if we don't run the msg loop between failing and deleting the window, the // whole OS message-dispatch system gets itself into a state, and refuses to deliver any // more messages for the whole app. (That's what happens in Win7, anyway) MessageManager::getInstance()->runDispatchLoopUntil (200); + #endif } }