diff --git a/platform/windows/display_server_windows.cpp b/platform/windows/display_server_windows.cpp index 657caa79393f..fa73740e0470 100644 --- a/platform/windows/display_server_windows.cpp +++ b/platform/windows/display_server_windows.cpp @@ -247,8 +247,13 @@ class FileDialogEventHandler : public IFileDialogEvents, public IFileDialogContr // IUnknown methods HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppv) { static const QITAB qit[] = { +#ifdef __MINGW32__ + { &__uuidof(IFileDialogEvents), static_cast(OFFSETOFCLASS(IFileDialogEvents, FileDialogEventHandler)) }, + { &__uuidof(IFileDialogControlEvents), static_cast(OFFSETOFCLASS(IFileDialogControlEvents, FileDialogEventHandler)) }, +#else QITABENT(FileDialogEventHandler, IFileDialogEvents), QITABENT(FileDialogEventHandler, IFileDialogControlEvents), +#endif { 0, 0 }, }; return QISearch(this, qit, riid, ppv);