windowscodecs: Implement PixelFormatInfo_GetSpecVersion.
This commit is contained in:
parent
7c19137996
commit
497e8840ca
@ -1238,8 +1238,12 @@ static HRESULT WINAPI PixelFormatInfo_GetVersion(IWICPixelFormatInfo2 *iface, UI
|
|||||||
static HRESULT WINAPI PixelFormatInfo_GetSpecVersion(IWICPixelFormatInfo2 *iface, UINT cchSpecVersion,
|
static HRESULT WINAPI PixelFormatInfo_GetSpecVersion(IWICPixelFormatInfo2 *iface, UINT cchSpecVersion,
|
||||||
WCHAR *wzSpecVersion, UINT *pcchActual)
|
WCHAR *wzSpecVersion, UINT *pcchActual)
|
||||||
{
|
{
|
||||||
FIXME("(%p,%u,%p,%p): stub\n", iface, cchSpecVersion, wzSpecVersion, pcchActual);
|
PixelFormatInfo *This = impl_from_IWICPixelFormatInfo2(iface);
|
||||||
return E_NOTIMPL;
|
|
||||||
|
TRACE("(%p,%u,%p,%p)\n", iface, cchSpecVersion, wzSpecVersion, pcchActual);
|
||||||
|
|
||||||
|
return ComponentInfo_GetStringValue(This->classkey, specversion_valuename,
|
||||||
|
cchSpecVersion, wzSpecVersion, pcchActual);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI PixelFormatInfo_GetFriendlyName(IWICPixelFormatInfo2 *iface, UINT cchFriendlyName,
|
static HRESULT WINAPI PixelFormatInfo_GetFriendlyName(IWICPixelFormatInfo2 *iface, UINT cchFriendlyName,
|
||||||
|
@ -209,8 +209,8 @@ static void test_pixelformat_info(void)
|
|||||||
|
|
||||||
len = 0xdeadbeef;
|
len = 0xdeadbeef;
|
||||||
hr = IWICComponentInfo_GetSpecVersion(info, 0, NULL, &len);
|
hr = IWICComponentInfo_GetSpecVersion(info, 0, NULL, &len);
|
||||||
todo_wine ok(hr == S_OK, "GetSpecVersion failed, hr=%x\n", hr);
|
ok(hr == S_OK, "GetSpecVersion failed, hr=%x\n", hr);
|
||||||
todo_wine ok(len == 0, "invalid length 0x%x\n", len); /* spec version does not apply to pixel formats */
|
ok(len == 0, "invalid length 0x%x\n", len); /* spec version does not apply to pixel formats */
|
||||||
|
|
||||||
memset(&guid, 0xaa, sizeof(guid));
|
memset(&guid, 0xaa, sizeof(guid));
|
||||||
hr = IWICComponentInfo_GetVendorGUID(info, &guid);
|
hr = IWICComponentInfo_GetVendorGUID(info, &guid);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user