dpnet: #3 Add stubbed DirectPlay8Peer:Close

Alexandre Julliard julliard at winehq.org
Mon Jul 28 05:14:44 CDT 2008


Alexander Nicolaysen Sørnes <alex at thehandofagony.com> writes:

> +
>  static const IDirectPlay8PeerVtbl DirectPlay8Peer_Vtbl =
>  {
>      IDirectPlay8PeerImpl_QueryInterface,
>      IDirectPlay8PeerImpl_AddRef,
>      IDirectPlay8PeerImpl_Release,
>      IDirectPlay8PeerImpl_Initialize,
> -    IDirectPlay8PeerImpl_EnumServiceProviders
> +    IDirectPlay8PeerImpl_EnumServiceProviders,
> +    NULL,
> +    NULL,
> +    NULL,
> +    NULL,
> +    NULL,
> +    NULL,
> +    NULL,
> +    NULL,
> +    NULL,
> +    NULL,
> +    NULL,
> +    NULL,
> +    NULL,
> +    NULL,
> +    NULL,
> +    NULL,
> +    NULL,
> +    NULL,
> +    NULL,
> +    IDirectPlay8PeerImpl_Close

Don't do that, partial vtables lead to hard to find crashes. The vtable
should be completely initialized from the start with stub functions.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list