Commit aaa16427 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

windowscodecs: Fix warnings detected by compiling with inline wrappers.

parent 4a5eca88
...@@ -2,7 +2,7 @@ MODULE = windowscodecs.dll ...@@ -2,7 +2,7 @@ MODULE = windowscodecs.dll
IMPORTLIB = windowscodecs IMPORTLIB = windowscodecs
IMPORTS = uuid ole32 oleaut32 shlwapi advapi32 rpcrt4 IMPORTS = uuid ole32 oleaut32 shlwapi advapi32 rpcrt4
EXTRAINCL = @PNGINCL@ 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@ EXTRALIBS = @APPLICATIONSERVICESLIB@
C_SRCS = \ C_SRCS = \
......
...@@ -179,7 +179,7 @@ static HRESULT WINAPI FlipRotator_CopyPixels(IWICBitmapFlipRotator *iface, ...@@ -179,7 +179,7 @@ static HRESULT WINAPI FlipRotator_CopyPixels(IWICBitmapFlipRotator *iface,
if (!prc) if (!prc)
{ {
UINT width, height; UINT width, height;
hr = IWICBitmapSource_GetSize(iface, &width, &height); hr = IWICBitmapFlipRotator_GetSize(iface, &width, &height);
if (FAILED(hr)) return hr; if (FAILED(hr)) return hr;
rect.X = 0; rect.X = 0;
rect.Y = 0; rect.Y = 0;
......
...@@ -697,14 +697,14 @@ static HRESULT WINAPI IcoDecoder_GetFrame(IWICBitmapDecoder *iface, ...@@ -697,14 +697,14 @@ static HRESULT WINAPI IcoDecoder_GetFrame(IWICBitmapDecoder *iface,
LeaveCriticalSection(&This->lock); LeaveCriticalSection(&This->lock);
IStream_Release(substream); IWICStream_Release(substream);
return S_OK; return S_OK;
fail: fail:
LeaveCriticalSection(&This->lock); LeaveCriticalSection(&This->lock);
HeapFree(GetProcessHeap(), 0, result); HeapFree(GetProcessHeap(), 0, result);
if (substream) IStream_Release(substream); if (substream) IWICStream_Release(substream);
if (SUCCEEDED(hr)) hr = E_FAIL; if (SUCCEEDED(hr)) hr = E_FAIL;
TRACE("<-- %x\n", hr); TRACE("<-- %x\n", hr);
return hr; return hr;
......
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