From 6588aea643832291187391a713b4e95b67fdef42 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Tue, 24 Jul 2012 15:13:15 +0900 Subject: [PATCH] windowscodecs: Do not assume that vtable is the first element of the object. --- dlls/windowscodecs/palette.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/windowscodecs/palette.c b/dlls/windowscodecs/palette.c index 096258ad99e..f989c970153 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; }