windowscodecs: Always report pixel formats are signed.
This commit is contained in:
parent
0dee027df3
commit
d99740e8ea
|
@ -1122,8 +1122,15 @@ static HRESULT WINAPI PixelFormatInfo_GetCLSID(IWICPixelFormatInfo2 *iface, CLSI
|
||||||
|
|
||||||
static HRESULT WINAPI PixelFormatInfo_GetSigningStatus(IWICPixelFormatInfo2 *iface, DWORD *pStatus)
|
static HRESULT WINAPI PixelFormatInfo_GetSigningStatus(IWICPixelFormatInfo2 *iface, DWORD *pStatus)
|
||||||
{
|
{
|
||||||
FIXME("(%p,%p): stub\n", iface, pStatus);
|
TRACE("(%p,%p)\n", iface, pStatus);
|
||||||
return E_NOTIMPL;
|
|
||||||
|
if (!pStatus)
|
||||||
|
return E_INVALIDARG;
|
||||||
|
|
||||||
|
/* Pixel formats don't require code, so they are considered signed. */
|
||||||
|
*pStatus = WICComponentSigned;
|
||||||
|
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI PixelFormatInfo_GetAuthor(IWICPixelFormatInfo2 *iface, UINT cchAuthor,
|
static HRESULT WINAPI PixelFormatInfo_GetAuthor(IWICPixelFormatInfo2 *iface, UINT cchAuthor,
|
||||||
|
|
|
@ -194,8 +194,6 @@ static void test_pixelformat_info(void)
|
||||||
ok(hr == S_OK, "GetFriendlyName failed, hr=%x\n", hr);
|
ok(hr == S_OK, "GetFriendlyName failed, hr=%x\n", hr);
|
||||||
ok(len < 255 && len > 0, "invalid length 0x%x\n", len);
|
ok(len < 255 && len > 0, "invalid length 0x%x\n", len);
|
||||||
|
|
||||||
todo_wine
|
|
||||||
{
|
|
||||||
hr = IWICComponentInfo_GetSigningStatus(info, NULL);
|
hr = IWICComponentInfo_GetSigningStatus(info, NULL);
|
||||||
ok(hr == E_INVALIDARG, "GetSigningStatus failed, hr=%x\n", hr);
|
ok(hr == E_INVALIDARG, "GetSigningStatus failed, hr=%x\n", hr);
|
||||||
|
|
||||||
|
@ -203,6 +201,8 @@ static void test_pixelformat_info(void)
|
||||||
ok(hr == S_OK, "GetSigningStatus failed, hr=%x\n", hr);
|
ok(hr == S_OK, "GetSigningStatus failed, hr=%x\n", hr);
|
||||||
ok(signing == WICComponentSigned, "unexpected signing status 0x%x\n", signing);
|
ok(signing == WICComponentSigned, "unexpected signing status 0x%x\n", signing);
|
||||||
|
|
||||||
|
todo_wine
|
||||||
|
{
|
||||||
len = 0xdeadbeef;
|
len = 0xdeadbeef;
|
||||||
hr = IWICComponentInfo_GetSpecVersion(info, 0, NULL, &len);
|
hr = IWICComponentInfo_GetSpecVersion(info, 0, NULL, &len);
|
||||||
ok(hr == S_OK, "GetSpecVersion failed, hr=%x\n", hr);
|
ok(hr == S_OK, "GetSpecVersion failed, hr=%x\n", hr);
|
||||||
|
|
Loading…
Reference in New Issue