Commit b22a0628 authored by Connor McAdams's avatar Connor McAdams Committed by Alexandre Julliard

uiautomationcore: Only print FIXME messages for missing default clientside providers once.

parent 29d8c382
...@@ -3131,6 +3131,7 @@ HRESULT WINAPI UiaHUiaNodeFromVariant(VARIANT *in_val, HUIANODE *huianode) ...@@ -3131,6 +3131,7 @@ HRESULT WINAPI UiaHUiaNodeFromVariant(VARIANT *in_val, HUIANODE *huianode)
static SAFEARRAY WINAPI *default_uia_provider_callback(HWND hwnd, enum ProviderType prov_type) static SAFEARRAY WINAPI *default_uia_provider_callback(HWND hwnd, enum ProviderType prov_type)
{ {
IRawElementProviderSimple *elprov = NULL; IRawElementProviderSimple *elprov = NULL;
static BOOL fixme_once;
SAFEARRAY *sa = NULL; SAFEARRAY *sa = NULL;
HRESULT hr; HRESULT hr;
...@@ -3153,6 +3154,7 @@ static SAFEARRAY WINAPI *default_uia_provider_callback(HWND hwnd, enum ProviderT ...@@ -3153,6 +3154,7 @@ static SAFEARRAY WINAPI *default_uia_provider_callback(HWND hwnd, enum ProviderT
} }
case ProviderType_NonClientArea: case ProviderType_NonClientArea:
if (!fixme_once++)
FIXME("Default ProviderType_NonClientArea provider unimplemented.\n"); FIXME("Default ProviderType_NonClientArea provider unimplemented.\n");
break; break;
...@@ -3238,6 +3240,7 @@ exit: ...@@ -3238,6 +3240,7 @@ exit:
static HRESULT uia_get_providers_for_hwnd(struct uia_node *node) static HRESULT uia_get_providers_for_hwnd(struct uia_node *node)
{ {
static BOOL fixme_once;
HRESULT hr; HRESULT hr;
hr = uia_get_provider_from_hwnd(node); hr = uia_get_provider_from_hwnd(node);
...@@ -3251,7 +3254,7 @@ static HRESULT uia_get_providers_for_hwnd(struct uia_node *node) ...@@ -3251,7 +3254,7 @@ static HRESULT uia_get_providers_for_hwnd(struct uia_node *node)
return hr; return hr;
} }
if (!node->prov[PROV_TYPE_OVERRIDE]) if (!node->prov[PROV_TYPE_OVERRIDE] && !fixme_once++)
FIXME("Override provider callback currently unimplemented.\n"); FIXME("Override provider callback currently unimplemented.\n");
if (!node->prov[PROV_TYPE_NONCLIENT]) if (!node->prov[PROV_TYPE_NONCLIENT])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment