windowscodecs: Fix warnings detected by compiling with inline wrappers.

This commit is contained in:
Dmitry Timoshkov 2012-07-27 18:08:19 +09:00 committed by Alexandre Julliard
parent 4a5eca88aa
commit aaa164272d
3 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@ MODULE = windowscodecs.dll
IMPORTLIB = windowscodecs
IMPORTS = uuid ole32 oleaut32 shlwapi advapi32 rpcrt4
EXTRAINCL = @PNGINCL@
EXTRADEFS = -DENTRY_PREFIX=WIC_ -DPROXY_DELEGATION -DWINE_REGISTER_DLL
EXTRADEFS = -DENTRY_PREFIX=WIC_ -DPROXY_DELEGATION -DWINE_REGISTER_DLL -DWIDL_C_INLINE_WRAPPERS
EXTRALIBS = @APPLICATIONSERVICESLIB@
C_SRCS = \

View File

@ -179,7 +179,7 @@ static HRESULT WINAPI FlipRotator_CopyPixels(IWICBitmapFlipRotator *iface,
if (!prc)
{
UINT width, height;
hr = IWICBitmapSource_GetSize(iface, &width, &height);
hr = IWICBitmapFlipRotator_GetSize(iface, &width, &height);
if (FAILED(hr)) return hr;
rect.X = 0;
rect.Y = 0;

View File

@ -697,14 +697,14 @@ static HRESULT WINAPI IcoDecoder_GetFrame(IWICBitmapDecoder *iface,
LeaveCriticalSection(&This->lock);
IStream_Release(substream);
IWICStream_Release(substream);
return S_OK;
fail:
LeaveCriticalSection(&This->lock);
HeapFree(GetProcessHeap(), 0, result);
if (substream) IStream_Release(substream);
if (substream) IWICStream_Release(substream);
if (SUCCEEDED(hr)) hr = E_FAIL;
TRACE("<-- %x\n", hr);
return hr;