[PATCH 2/5] mstask: Implemented (Set|Get)ApplicationName. (Revision)

Alexandre Julliard julliard at winehq.org
Wed Aug 20 05:41:58 CDT 2008


Roy Shea <royshea at gmail.com> writes:

> @@ -323,16 +324,62 @@ static HRESULT WINAPI MSTASK_ITask_SetApplicationName(
>          ITask* iface,
>          LPCWSTR pwszApplicationName)
>  {
> -    FIXME("(%p, %s): stub\n", iface, debugstr_w(pwszApplicationName));
> -    return E_NOTIMPL;
> +    DWORD n;
> +    TaskImpl *This = (TaskImpl *)iface;
> +
> +    TRACE("(%p, %s)\n", iface, debugstr_w(pwszApplicationName));
> +
> +    HeapFree(GetProcessHeap(), 0, This->applicationName);
> +    This->applicationName = NULL;

You need to preserve the previous value on error.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list