Jacek Caban : mshtml: Added IHTMLUniqueName:: get_uniqueNumber implementation.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jan 11 08:22:28 CST 2016
Module: wine
Branch: master
Commit: 881b2f08d900c1a497dbd9006535ae4ba4401cec
URL: http://source.winehq.org/git/wine.git/?a=commit;h=881b2f08d900c1a497dbd9006535ae4ba4401cec
Author: Jacek Caban <jacek at codeweavers.com>
Date: Mon Jan 11 14:01:38 2016 +0100
mshtml: Added IHTMLUniqueName::get_uniqueNumber implementation.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mshtml/htmlelem.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/htmlelem.c b/dlls/mshtml/htmlelem.c
index defa10a..61110c5 100644
--- a/dlls/mshtml/htmlelem.c
+++ b/dlls/mshtml/htmlelem.c
@@ -3843,11 +3843,21 @@ static HRESULT WINAPI HTMLUniqueName_Invoke(IHTMLUniqueName *iface, DISPID dispI
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
}
+static void ensure_unique_id(HTMLElement *elem)
+{
+ if(!elem->unique_id)
+ elem->unique_id = ++elem->node.doc->unique_id;
+}
+
static HRESULT WINAPI HTMLUniqueName_get_uniqueNumber(IHTMLUniqueName *iface, LONG *p)
{
HTMLElement *This = impl_from_IHTMLUniqueName(iface);
- FIXME("(%p)->(%p)\n", This, p);
- return E_NOTIMPL;
+
+ TRACE("(%p)->(%p)\n", This, p);
+
+ ensure_unique_id(This);
+ *p = This->unique_id;
+ return S_OK;
}
static HRESULT WINAPI HTMLUniqueName_get_uniqueID(IHTMLUniqueName *iface, BSTR *p)
More information about the wine-cvs
mailing list