"Vincent Povirk (they/them)" vincent@codeweavers.com wrote:
On Tue, May 14, 2019 at 7:48 AM Dmitry Timoshkov dmitry@baikal.ru wrote:
"Vincent Povirk (they/them)" vincent@codeweavers.com wrote:
The rule, as I understand it, is that all interfaces should return the same pointer when queried for IUnknown. It doesn't have to be discoverable by any other IID.
I'm not sure if that applies to interfaces generally or just IUnknown. Mono's COM code (and probably .NET's as well) relies on it for IUnknown.
The code for IMILBitmapScaler_QueryInterface() follows exisiting code for instance of IWICBitmap_QueryInterface(), do I miss something?
It looks to me like BitmapScaler_QueryInterface for IUnknown will return &IWICBitmapScaler_iface, and IMILBitmapScaler_QueryInterface for IUnknown will return &IMILBitmapScaler_iface.
Do you mean that they are supposed to return the same interface?