windowscodecs: Do not assume that vtable is the first element of the object.
Dmitry Timoshkov
dmitry at baikal.ru
Fri Aug 17 12:09:09 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 f033012..045f795 100644
--- a/dlls/windowscodecs/palette.c
+++ b/dlls/windowscodecs/palette.c
@@ -59,7 +59,7 @@ static HRESULT WINAPI PaletteImpl_QueryInterface(IWICPalette *iface, REFIID iid,
if (IsEqualIID(&IID_IUnknown, iid) || IsEqualIID(&IID_IWICPalette, iid))
{
- *ppv = This;
+ *ppv = &This->IWICPalette_iface;
}
else
{
--
1.7.11.5
More information about the wine-patches
mailing list