1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-30 02:50:05 +00:00

FileChooser: Improve MinGW compatibility

This commit is contained in:
reuk 2021-04-07 13:54:29 +01:00
parent 5753466bfb
commit a10cc6faff
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -23,10 +23,14 @@
==============================================================================
*/
#if JUCE_MINGW
LWSTDAPI IUnknown_GetWindow (IUnknown* punk, HWND* phwnd);
#endif
namespace juce
{
// Implemented in juce_win32_Messageing.cpp
// Implemented in juce_win32_Messaging.cpp
bool windowsDispatchNextMessageOnSystemQueue (bool returnIfNoPendingMessages);
class Win32NativeFileChooser : private Thread
@ -485,11 +489,13 @@ private:
const Remover remover (*this);
#if ! JUCE_MINGW
if (SystemStats::getOperatingSystemType() >= SystemStats::WinVista
&& customComponent == nullptr)
{
return openDialogVistaAndUp (async);
}
#endif
return openDialogPreVista (async);
}