Commit 9839f09b authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Vitaly Lipatov

windowscodecs/tests: Add IWICBitmapEncoderInfo test

parent 67890f7c
......@@ -1418,6 +1418,8 @@ static void test_multi_encoder_impl(const struct bitmap_data **srcs, const CLSID
if (hglobal && SUCCEEDED(hr))
{
IWICBitmapEncoderInfo *info = NULL;
if (palette)
{
hr = IWICBitmapEncoder_SetPalette(encoder, palette);
......@@ -1437,6 +1439,20 @@ static void test_multi_encoder_impl(const struct bitmap_data **srcs, const CLSID
hr = S_OK;
}
hr = IWICBitmapEncoder_GetEncoderInfo(encoder, &info);
ok(hr == S_OK || hr == WINCODEC_ERR_COMPONENTNOTFOUND, "wrong error %#lx\n", hr);
if (SUCCEEDED(hr))
{
CLSID clsid;
hr = IWICBitmapEncoderInfo_GetCLSID(info, &clsid);
ok(hr == S_OK, "wrong error %#lx\n", hr);
ok(!IsEqualGUID(clsid_encoder, &clsid), "wrong CLSID %s (%s)\n",
wine_dbgstr_guid(clsid_encoder), wine_dbgstr_guid(&clsid));
IWICBitmapEncoderInfo_Release(info);
}
i=0;
while (SUCCEEDED(hr) && srcs[i])
{
......
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