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:37 CDT 2012


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

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

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

---

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

diff --git a/dlls/windowscodecs/palette.c b/dlls/windowscodecs/palette.c
index 096258a..f989c97 100644
--- a/dlls/windowscodecs/palette.c
+++ b/dlls/windowscodecs/palette.c
@@ -611,7 +611,7 @@ HRESULT PaletteImpl_Create(IWICPalette **palette)
     InitializeCriticalSection(&This->lock);
     This->lock.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": PaletteImpl.lock");
 
-    *palette = (IWICPalette*)This;
+    *palette = &This->IWICPalette_iface;
 
     return S_OK;
 }




More information about the wine-cvs mailing list