windowscodecs: Pass result as void pointer to ComponentInfo_GetUINTValue.

This commit is contained in:
Jacek Caban 2024-01-29 15:08:24 +01:00 committed by Alexandre Julliard
parent fdd9e257e2
commit 6e49ff99eb

View file

@ -101,7 +101,7 @@ static HRESULT ComponentInfo_GetGUIDValue(HKEY classkey, LPCWSTR value,
}
static HRESULT ComponentInfo_GetUINTValue(HKEY classkey, LPCWSTR value,
UINT *result)
void *result)
{
LONG ret;
DWORD cbdata = sizeof(DWORD);
@ -110,11 +110,11 @@ static HRESULT ComponentInfo_GetUINTValue(HKEY classkey, LPCWSTR value,
return E_INVALIDARG;
ret = RegGetValueW(classkey, NULL, value, RRF_RT_DWORD, NULL,
(DWORD *)result, &cbdata);
result, &cbdata);
if (ret == ERROR_FILE_NOT_FOUND)
{
*result = 0;
*(UINT *)result = 0;
return S_OK;
}
@ -1413,7 +1413,7 @@ static HRESULT WINAPI PixelFormatInfo_SupportsTransparency(IWICPixelFormatInfo2
TRACE("(%p,%p)\n", iface, pfSupportsTransparency);
return ComponentInfo_GetUINTValue(This->classkey, L"SupportsTransparency", (UINT *)pfSupportsTransparency);
return ComponentInfo_GetUINTValue(This->classkey, L"SupportsTransparency", pfSupportsTransparency);
}
static HRESULT WINAPI PixelFormatInfo_GetNumericRepresentation(IWICPixelFormatInfo2 *iface,
@ -1682,7 +1682,7 @@ static HRESULT WINAPI MetadataReaderInfo_DoesRequireFullStream(IWICMetadataReade
{
MetadataReaderInfo *This = impl_from_IWICMetadataReaderInfo(iface);
TRACE("(%p,%p)\n", iface, param);
return ComponentInfo_GetUINTValue(This->classkey, L"RequiresFullStream", (UINT *)param);
return ComponentInfo_GetUINTValue(This->classkey, L"RequiresFullStream", param);
}
static HRESULT WINAPI MetadataReaderInfo_DoesSupportPadding(IWICMetadataReaderInfo *iface,
@ -1690,7 +1690,7 @@ static HRESULT WINAPI MetadataReaderInfo_DoesSupportPadding(IWICMetadataReaderIn
{
MetadataReaderInfo *This = impl_from_IWICMetadataReaderInfo(iface);
TRACE("(%p,%p)\n", iface, param);
return ComponentInfo_GetUINTValue(This->classkey, L"SupportsPadding", (UINT *)param);
return ComponentInfo_GetUINTValue(This->classkey, L"SupportsPadding", param);
}
static HRESULT WINAPI MetadataReaderInfo_DoesRequireFixedSize(IWICMetadataReaderInfo *iface,