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

This commit is contained in:
Dmitry Timoshkov 2012-07-24 15:02:20 +09:00 committed by Alexandre Julliard
parent 022824100e
commit 9fecb853a4

View File

@ -87,7 +87,7 @@ static HRESULT WINAPI BmpFrameEncode_QueryInterface(IWICBitmapFrameEncode *iface
if (IsEqualIID(&IID_IUnknown, iid) ||
IsEqualIID(&IID_IWICBitmapFrameEncode, iid))
{
*ppv = This;
*ppv = &This->IWICBitmapFrameEncode_iface;
}
else
{
@ -434,7 +434,7 @@ static HRESULT WINAPI BmpEncoder_QueryInterface(IWICBitmapEncoder *iface, REFIID
if (IsEqualIID(&IID_IUnknown, iid) ||
IsEqualIID(&IID_IWICBitmapEncoder, iid))
{
*ppv = This;
*ppv = &This->IWICBitmapEncoder_iface;
}
else
{