olefont: GetIDsOfNames

Alexandre Julliard julliard at winehq.org
Wed Sep 14 05:50:15 CDT 2005


Walt Ogburn <reuben at ugcs.caltech.edu> writes:

>    OLEFontImpl *this = impl_from_IDispatch(iface);
> -  FIXME("(%p,%s,%p,%d,%04x,%p), stub!\n", this, debugstr_guid(riid), rgszNames,
> -	cNames, (int)lcid, rgDispId
> -  );
> -  return E_NOTIMPL;
> +  TRACE("(%p,%s,%p,%d,%04x,%p)\n", this, debugstr_guid(riid), rgszNames,
> +       cNames, (int)lcid, rgDispId);
> +  if (S_OK != OLEFontImpl_GetTypeInfo (iface, 0, lcid, &pTInfo))
> +    ERR("GetTypeInfo failed.\n");

You need to handle the failure properly, instead of just displaying an
ERR and then going on with a bad pointer.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list