Browse Source

FileChooser: Improve MinGW compatibility

v6.1.6
reuk 4 years ago
parent
commit
a10cc6faff
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      modules/juce_gui_basics/native/juce_win32_FileChooser.cpp

+ 7
- 1
modules/juce_gui_basics/native/juce_win32_FileChooser.cpp 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);
}


Loading…
Cancel
Save