[13/18] windowscodecs: Do not assume that vtable is the first element of the object.
Dmitry Timoshkov
dmitry at baikal.ru
Tue Jul 24 01:13:15 CDT 2012
---
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 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;
}
--
1.7.11.2
More information about the wine-patches
mailing list