[3/3] taskschd: Implement setters for IRegistrationInfo string properties.
Nikolay Sivov
bunglehead at gmail.com
Fri Apr 11 02:33:49 CDT 2014
On 4/11/2014 11:27, Dmitry Timoshkov wrote:
> static HRESULT WINAPI RegistrationInfo_put_Description(IRegistrationInfo *iface, BSTR description)
> {
> - FIXME("%p,%p: stub\n", iface, debugstr_w(description));
> - return E_NOTIMPL;
> + registration_info *reginfo = impl_from_IRegistrationInfo(iface);
> +
> + TRACE("%p,%p\n", iface, debugstr_w(description));
> +
> + if (!description) return E_INVALIDARG;
> +
> + reginfo->description = heap_strdupW(description);
> + /* FIXME: update XML on the server side */
> + return reginfo->description ? S_OK : E_OUTOFMEMORY;
Looks like you need to free previously set string.
More information about the wine-devel
mailing list