[2/10] WineD3D: Subclass queries

Alexandre Julliard julliard at winehq.org
Thu Feb 28 13:17:57 CST 2008


Stefan Dösinger <stefan at codeweavers.com> writes:

> diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
> index d1ab9a3..9dff960 100644
> --- a/dlls/wined3d/device.c
> +++ b/dlls/wined3d/device.c
> @@ -1143,6 +1143,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateQuery(IWineD3DDevice *iface, WINE
>      IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface;
>      IWineD3DQueryImpl *object; /*NOTE: impl ref allowed since this is a create function */
>      HRESULT hr = WINED3DERR_NOTAVAILABLE;
> +    const IWineD3DQueryVtbl *vtable;
>  
>      /* Just a check to see if we support this type of query */
>      switch(Type) {
> @@ -1161,6 +1162,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateQuery(IWineD3DDevice *iface, WINE
>               */
>              FIXME("(%p) Event query: Unimplemented, but pretending to be supported\n", This);
>          }
> +        vtable = &IWineD3DEventQuery_Vtbl;
>          hr = WINED3D_OK;
>          break;

So what is vtable set to in the other cases?

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list