windowscodecs: Fix warnings detected by compiling with inline wrappers.

Dmitry Timoshkov dmitry at baikal.ru
Fri Jul 27 04:08:19 CDT 2012


---
 dlls/windowscodecs/Makefile.in  | 2 +-
 dlls/windowscodecs/fliprotate.c | 2 +-
 dlls/windowscodecs/icoformat.c  | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/windowscodecs/Makefile.in b/dlls/windowscodecs/Makefile.in
index da851d5..acbb0e9 100644
--- a/dlls/windowscodecs/Makefile.in
+++ b/dlls/windowscodecs/Makefile.in
@@ -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 = \
diff --git a/dlls/windowscodecs/fliprotate.c b/dlls/windowscodecs/fliprotate.c
index 3449679..81e01cc 100644
--- a/dlls/windowscodecs/fliprotate.c
+++ b/dlls/windowscodecs/fliprotate.c
@@ -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;
diff --git a/dlls/windowscodecs/icoformat.c b/dlls/windowscodecs/icoformat.c
index 047c25a..6cccc3e 100644
--- a/dlls/windowscodecs/icoformat.c
+++ b/dlls/windowscodecs/icoformat.c
@@ -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;
-- 
1.7.11.2




More information about the wine-patches mailing list