You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.0KB

  1. diff --git a/modules/juce_gui_basics/native/juce_win32_FileChooser.cpp b/modules/juce_gui_basics/native/juce_win32_FileChooser.cpp
  2. index 0c1138a2b..a5b42b8ef 100644
  3. --- a/modules/juce_gui_basics/native/juce_win32_FileChooser.cpp
  4. +++ b/modules/juce_gui_basics/native/juce_win32_FileChooser.cpp
  5. @@ -172,6 +172,7 @@ private:
  6. void operator() (LPWSTR ptr) const noexcept { CoTaskMemFree (ptr); }
  7. };
  8. + #if JUCE_MSVC
  9. bool showDialog (IFileDialog& dialog, bool async) const
  10. {
  11. FILEOPENDIALOGOPTIONS flags = {};
  12. @@ -327,6 +328,7 @@ private:
  13. return result;
  14. }
  15. + #endif
  16. Array<URL> openDialogPreVista (bool async)
  17. {
  18. @@ -436,11 +438,13 @@ private:
  19. const Remover remover (*this);
  20. + #if JUCE_MSVC
  21. if (SystemStats::getOperatingSystemType() >= SystemStats::WinVista
  22. && customComponent == nullptr)
  23. {
  24. return openDialogVistaAndUp (async);
  25. }
  26. + #endif
  27. return openDialogPreVista (async);
  28. }