Commit 8568848b authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

windowscodecs: Silence fixme for IID_CMetaBitmapRenderTarget.

parent 87ebccc3
......@@ -30,6 +30,9 @@
#include "wine/asm.h"
#include "wine/debug.h"
#include "initguid.h"
DEFINE_GUID(IID_CMetaBitmapRenderTarget, 0x0ccd7824,0xdc16,0x4d09,0xbc,0xa8,0x6b,0x09,0xc4,0xef,0x55,0x35);
WINE_DEFAULT_DEBUG_CHANNEL(wincodecs);
/* WARNING: .NET Media Integration Layer (MIL) directly dereferences
......@@ -253,7 +256,10 @@ static HRESULT WINAPI BitmapImpl_QueryInterface(IWICBitmap *iface, REFIID iid,
}
else
{
FIXME("unknown interface %s\n", debugstr_guid(iid));
if (IsEqualIID(&IID_CMetaBitmapRenderTarget, iid))
WARN("Ignoring interface %s\n", debugstr_guid(iid));
else
FIXME("unknown interface %s\n", debugstr_guid(iid));
*ppv = NULL;
return E_NOINTERFACE;
}
......
......@@ -30,6 +30,9 @@
#include "wincodec.h"
#include "wine/test.h"
#include "initguid.h"
DEFINE_GUID(IID_CMetaBitmapRenderTarget, 0x0ccd7824,0xdc16,0x4d09,0xbc,0xa8,0x6b,0x09,0xc4,0xef,0x55,0x35);
extern IID IID_IMILBitmap;
extern IID IID_IMILBitmapSource;
extern IID IID_IMILBitmapLock;
......@@ -1464,6 +1467,12 @@ static void test_IMILBitmap(void)
IWICBitmapScaler_Release(scaler);
mil_source->lpVtbl->Release(mil_source);
mil_bitmap->lpVtbl->Release(mil_bitmap);
mil_unknown = (void *)0xdeadbeef;
hr = IWICBitmap_QueryInterface(bitmap, &IID_CMetaBitmapRenderTarget, (void **)&mil_unknown);
ok(hr == E_NOINTERFACE, "got %#lx\n", hr);
ok(!mil_unknown, "got %p\n", mil_unknown);
IWICBitmap_Release(bitmap);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment