Commit 6e49ff99 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

windowscodecs: Pass result as void pointer to ComponentInfo_GetUINTValue.

parent fdd9e257
......@@ -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,
......
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