[PATCH v2 3/3] uiautomationcore: Add UiaGetReservedNotSupportedValue stub.

Andrey Gusev andrey.goosev at gmail.com
Mon Mar 20 08:15:09 CDT 2017


v2: With suggestion from Alistair Leslie-Hughes.

Fixes bug 42671

Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
---
 dlls/uiautomationcore/uia_main.c            | 14 ++++++++++++++
 dlls/uiautomationcore/uiautomationcore.spec |  2 +-
 include/uiautomationcoreapi.h               |  1 +
 3 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/dlls/uiautomationcore/uia_main.c b/dlls/uiautomationcore/uia_main.c
index f78adb7..6d1a7e6 100644
--- a/dlls/uiautomationcore/uia_main.c
+++ b/dlls/uiautomationcore/uia_main.c
@@ -61,6 +61,20 @@ HRESULT WINAPI UiaGetReservedMixedAttributeValue(IUnknown **value)
 }
 
 /***********************************************************************
+ *          UiaGetReservedNotSupportedValue (uiautomationcore.@)
+ */
+HRESULT WINAPI UiaGetReservedNotSupportedValue(IUnknown **value)
+{
+    FIXME("(%p) stub!\n", value);
+
+    if (!value)
+        return E_POINTER;
+
+    *value = NULL;
+    return S_OK;
+}
+
+/***********************************************************************
  *          UiaLookupId (uiautomationcore.@)
  */
 int WINAPI UiaLookupId(enum AutomationIdentifierType type, const GUID *guid)
diff --git a/dlls/uiautomationcore/uiautomationcore.spec b/dlls/uiautomationcore/uiautomationcore.spec
index 989dc43..ddf84f6 100644
--- a/dlls/uiautomationcore/uiautomationcore.spec
+++ b/dlls/uiautomationcore/uiautomationcore.spec
@@ -60,7 +60,7 @@
 @ stub UiaGetPatternProvider
 @ stub UiaGetPropertyValue
 @ stdcall UiaGetReservedMixedAttributeValue(ptr)
-@ stub UiaGetReservedNotSupportedValue
+@ stdcall UiaGetReservedNotSupportedValue(ptr)
 @ stub UiaGetRootNode
 @ stub UiaGetRuntimeId
 @ stub UiaGetUpdatedCache
diff --git a/include/uiautomationcoreapi.h b/include/uiautomationcoreapi.h
index c8c442f..fbe47ad 100644
--- a/include/uiautomationcoreapi.h
+++ b/include/uiautomationcoreapi.h
@@ -49,6 +49,7 @@ enum AutomationIdentifierType
 };
 
 HRESULT WINAPI UiaGetReservedMixedAttributeValue(IUnknown **value);
+HRESULT WINAPI UiaGetReservedNotSupportedValue(IUnknown **value);
 int WINAPI UiaLookupId(enum AutomationIdentifierType type, const GUID *guid);
 BOOL WINAPI UiaPatternRelease(HUIAPATTERNOBJECT hobj);
 BOOL WINAPI UiaTextRangeRelease(HUIATEXTRANGE hobj);
-- 
2.7.4




More information about the wine-patches mailing list