[PATCH 3/3] propsys: Implement PropVariantToBuffer().
Jactry Zeng
jactry92 at gmail.com
Fri Feb 15 02:20:07 CST 2019
Hi Dmitry,
On Fri, Feb 15, 2019 at 3:42 AM Dmitry Timoshkov <dmitry at baikal.ru> wrote:
>
> Jactry Zeng <jzeng at codeweavers.com> wrote:
>
> > +HRESULT WINAPI PropVariantToBuffer(REFPROPVARIANT propvarIn, void
*ret, UINT cb)
> > +{
> > + TRACE("(%p, %p, %d)\n", propvarIn, ret, cb);
> > +
> > + if(cb > propvarIn->u.caub.cElems)
> > + return E_FAIL;
> > +
> > + memcpy(ret, propvarIn->u.caub.pElems, cb);
> > +
> > + return S_OK;
> > +}
>
> What happens when NULL and/or 0 are passed in?
I sent another try and added a test for this case in it.
Thanks for review and comment!
--
Regards,
Jactry Zeng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20190215/0b8db67f/attachment-0001.html>
More information about the wine-devel
mailing list