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.

32 lines
965B

  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 065d873e1..fb9cfc999 100644
  3. --- a/modules/juce_gui_basics/native/juce_win32_FileChooser.cpp
  4. +++ b/modules/juce_gui_basics/native/juce_win32_FileChooser.cpp
  5. @@ -167,6 +167,7 @@ private:
  6. Atomic<HWND> nativeDialogRef;
  7. Atomic<int> shouldCancel;
  8. + #if JUCE_MSVC
  9. bool showDialog (IFileDialog& dialog, bool async) const
  10. {
  11. FILEOPENDIALOGOPTIONS flags = {};
  12. @@ -303,6 +304,7 @@ private:
  13. return result;
  14. }
  15. + #endif
  16. Array<URL> openDialogPreVista (bool async)
  17. {
  18. @@ -412,8 +414,10 @@ private:
  19. const Remover remover (*this);
  20. + #if JUCE_MSVC
  21. if (SystemStats::getOperatingSystemType() >= SystemStats::WinVista)
  22. return openDialogVistaAndUp (async);
  23. + #endif
  24. return openDialogPreVista (async);
  25. }