DnD issue

Hi,

Tracking a bug reported by a user between our plugin and FLStudio (DnD not working from our plugin to FLStudio), I may have found an issue in the DnD code.

in juce_win32_windowing

[code] HRESULT __stdcall GetData (FORMATETC __RPC_FAR* pFormatEtc, STGMEDIUM __RPC_FAR* pMedium)
{
if (pFormatEtc->tymed == format->tymed
&& pFormatEtc->cfFormat == format->cfFormat
&& pFormatEtc->dwAspect == format->dwAspect)
{

}

    return DV_E_FORMATETC;
}[/code]

should’nt it be ?

if ((pFormatEtc->tymed & format->tymed) && pFormatEtc->cfFormat == format->cfFormat && pFormatEtc->dwAspect == format->dwAspect)

which now works fine.

Thing is, in FLStudiofor tymed is equals to 5 and possible value are power of 2 looking at msdn so I suspect it might be some mask.
Though I’m no expert in WIN32 code.

What do you think ?

Thanks,

Thanks, I think you’re right about that.