Dmitry Timoshkov : windowscodecs: Do not assume that vtable is the first element of the object.

Alexandre Julliard julliard at winehq.org
Tue Jul 24 14:39:39 CDT 2012


Module: wine
Branch: master
Commit: e9b642ee69287120fa47d55839de5bea91d444ae
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e9b642ee69287120fa47d55839de5bea91d444ae

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Tue Jul 24 15:16:15 2012 +0900

windowscodecs: Do not assume that vtable is the first element of the object.

---

 dlls/windowscodecs/scaler.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/windowscodecs/scaler.c b/dlls/windowscodecs/scaler.c
index 06d900d..5470d2b 100644
--- a/dlls/windowscodecs/scaler.c
+++ b/dlls/windowscodecs/scaler.c
@@ -63,7 +63,7 @@ static HRESULT WINAPI BitmapScaler_QueryInterface(IWICBitmapScaler *iface, REFII
         IsEqualIID(&IID_IWICBitmapSource, iid) ||
         IsEqualIID(&IID_IWICBitmapScaler, iid))
     {
-        *ppv = This;
+        *ppv = &This->IWICBitmapScaler_iface;
     }
     else
     {




More information about the wine-cvs mailing list