[PATCH] uiautomationcore: Add stub UiaNodeFromFocus function.

Zebediah Figura (she/her) zfigura at codeweavers.com
Thu Jun 17 11:22:42 CDT 2021


On 6/17/21 5:16 AM, Vijay Kiran Kamuju wrote:
> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50576
> 
> Signed-off-by: Vijay Kiran Kamuju <infyquest at gmail.com>
> ---
>   dlls/uiautomationcore/uia_main.c            |  8 ++++
>   dlls/uiautomationcore/uiautomationcore.spec |  2 +-
>   include/uiautomationcoreapi.h               | 45 +++++++++++++++++++++
>   3 files changed, 54 insertions(+), 1 deletion(-)
> 
> diff --git a/dlls/uiautomationcore/uia_main.c b/dlls/uiautomationcore/uia_main.c
> index 77460aa174c..49fc97748b9 100644
> --- a/dlls/uiautomationcore/uia_main.c
> +++ b/dlls/uiautomationcore/uia_main.c
> @@ -104,3 +104,11 @@ HRESULT WINAPI UiaHostProviderFromHwnd(HWND hwnd, IRawElementProviderSimple **pr
>       FIXME("(%p, %p): stub\n", hwnd, provider);
>       return E_NOTIMPL;
>   }
> +
> +HRESULT WINAPI UiaNodeFromFocus(UiaCacheRequest *request, SAFEARRAY **data, BSTR *tree)
> +{
> +    FIXME("(%p, %p, %p): stub\n", request, data, tree);
> +
> +    *tree = NULL;
> +    return S_OK;
> +}

Should this also initialize *data?



More information about the wine-devel mailing list