ole32: Add Co*InitializeSpy functions

Rob Shearman robertshearman at gmail.com
Wed Nov 26 08:29:26 CST 2008


2008/11/26 Maarten Lankhorst <maarten at codeweavers.com>:
> +
> +HRESULT WINAPI CoRevokeInitializeSpy(ULARGE_INTEGER cookie)
> +{
> +    struct oletls *info = COM_CurrentInfo();
> +    TRACE("(%s)\n", wine_dbgstr_longlong(cookie.QuadPart));
> +
> +    if (!info || !info->spy || cookie.QuadPart != (DWORD_PTR)info->spy)
> +        return E_INVALIDARG;
> +
> +    IUnknown_Release(info->spy);
> +    return S_OK;
> +}

No function documentation and you forget to clear info->spy before returning.

-- 
Rob Shearman



More information about the wine-devel mailing list