From: Vadim Zeitlin Date: Wed, 9 May 2012 14:24:51 +0000 (+0000) Subject: Unconditionally define IID_IShellItem in wxMSW sources. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f797518e8f30a98cf778a84c23132b77869c0e60 Unconditionally define IID_IShellItem in wxMSW sources. This GUID may not be defined in uuid.lib even when __IShellItem_INTERFACE_DEFINED__ is defined in the headers, so just define it always to avoid any problems. Closes #14244. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/dirdlg.cpp b/src/msw/dirdlg.cpp index df4e4ddb54..d17cdc7f0f 100644 --- a/src/msw/dirdlg.cpp +++ b/src/msw/dirdlg.cpp @@ -72,11 +72,15 @@ struct IShellItem : public IUnknown virtual HRESULT wxSTDCALL Compare(IShellItem*, DWORD, int*) = 0; }; +#endif // #ifndef __IShellItem_INTERFACE_DEFINED__ + +// Define this GUID in any case, even when __IShellItem_INTERFACE_DEFINED__ is +// defined in the headers we might still not have it in the actual uuid.lib, +// this happens with at least VC7 used with its original (i.e. not updated) SDK +// and there is no harm in defining the GUID unconditionally. DEFINE_GUID(IID_IShellItem, 0x43826D1E, 0xE718, 0x42EE, 0xBC, 0x55, 0xA1, 0xE2, 0x61, 0xC3, 0x7B, 0xFE); -#endif // #ifndef __IShellItem_INTERFACE_DEFINED__ - struct IShellItemFilter; struct IFileDialogEvents;