winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
July 2008
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
3 participants
1114 discussions
Start a n
N
ew thread
Andrew Talbot : setupapi: Remove unneeded address-of operator from array name.
by Alexandre Julliard
14 Jul '08
14 Jul '08
Module: wine Branch: master Commit: ce2184e2f14e6ace87cd50c938b5e99d35ca80c1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ce2184e2f14e6ace87cd50c93…
Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Fri Jul 11 21:58:21 2008 +0100 setupapi: Remove unneeded address-of operator from array name. --- dlls/setupapi/queue.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/setupapi/queue.c b/dlls/setupapi/queue.c index 3212d5a..7605bc1 100644 --- a/dlls/setupapi/queue.c +++ b/dlls/setupapi/queue.c @@ -183,7 +183,7 @@ UINT CALLBACK QUEUE_callback_WtoA( void *context, UINT notification, switch(notification) { case SPFILENOTIFY_COPYERROR: - param2 = (UINT_PTR)&buffer; + param2 = (UINT_PTR)buffer; /* fall through */ case SPFILENOTIFY_STARTDELETE: case SPFILENOTIFY_ENDDELETE:
1
0
0
0
Andrew Talbot : rpcrt4: Remove unneeded address-of operator from array name .
by Alexandre Julliard
14 Jul '08
14 Jul '08
Module: wine Branch: master Commit: ab6efdd1e45bab8b9dc2bce35f0860fc26eb443c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ab6efdd1e45bab8b9dc2bce35…
Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Fri Jul 11 21:58:18 2008 +0100 rpcrt4: Remove unneeded address-of operator from array name. --- dlls/rpcrt4/rpc_async.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/rpcrt4/rpc_async.c b/dlls/rpcrt4/rpc_async.c index 4ff86a3..33fdc77 100644 --- a/dlls/rpcrt4/rpc_async.c +++ b/dlls/rpcrt4/rpc_async.c @@ -64,7 +64,7 @@ RPC_STATUS WINAPI RpcAsyncInitializeHandle(PRPC_ASYNC_STATE pAsync, unsigned int pAsync->Flags = 0; pAsync->StubInfo = NULL; pAsync->RuntimeInfo = NULL; - memset(&pAsync->Reserved, 0, sizeof(*pAsync) - FIELD_OFFSET(RPC_ASYNC_STATE, Reserved)); + memset(pAsync->Reserved, 0, sizeof(*pAsync) - FIELD_OFFSET(RPC_ASYNC_STATE, Reserved)); return RPC_S_OK; }
1
0
0
0
Jacek Caban : mshtml: Added IHTMLElement2::getElementsByTagName tests.
by Alexandre Julliard
14 Jul '08
14 Jul '08
Module: wine Branch: master Commit: 1c1f8e206f62ff8f54f3a2a5f3f67d4c8d813072 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1c1f8e206f62ff8f54f3a2a5f…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Fri Jul 11 23:45:22 2008 +0200 mshtml: Added IHTMLElement2::getElementsByTagName tests. --- dlls/mshtml/tests/dom.c | 34 +++++++++++++++++++++++++++++++++- 1 files changed, 33 insertions(+), 1 deletions(-) diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c index 4540ed4..2c25870 100644 --- a/dlls/mshtml/tests/dom.c +++ b/dlls/mshtml/tests/dom.c @@ -841,7 +841,7 @@ static void _test_elem_collection(unsigned line, IUnknown *unk, HRESULT hres; hres = IUnknown_QueryInterface(unk, &IID_IHTMLElementCollection, (void**)&col); - ok(hres == S_OK, "Could not get IHTMLElementCollection: %08x\n", hres); + ok_(__FILE__,line) (hres == S_OK, "Could not get IHTMLElementCollection: %08x\n", hres); test_disp((IUnknown*)col, &DIID_DispHTMLElementCollection); @@ -883,6 +883,34 @@ static void _test_elem_collection(unsigned line, IUnknown *unk, IHTMLElementCollection_Release(col); } +#define test_elem_getelembytag(u,t,l) _test_elem_getelembytag(__LINE__,u,t,l) +static void _test_elem_getelembytag(unsigned line, IUnknown *unk, elem_type_t type, long exlen) +{ + IHTMLElement2 *elem = _get_elem2_iface(line, unk); + IHTMLElementCollection *col = NULL; + elem_type_t *types = NULL; + BSTR tmp; + int i; + HRESULT hres; + + tmp = a2bstr(elem_type_infos[type].tag); + hres = IHTMLElement2_getElementsByTagName(elem, tmp, &col); + SysFreeString(tmp); + IHTMLElement2_Release(elem); + ok_(__FILE__,line) (hres == S_OK, "getElementByTagName failed: %08x\n", hres); + ok_(__FILE__,line) (col != NULL, "col == NULL\n"); + + if(exlen) { + types = HeapAlloc(GetProcessHeap(), 0, exlen*sizeof(elem_type_t)); + for(i=0; i<exlen; i++) + types[i] = type; + } + + _test_elem_collection(line, (IUnknown*)col, types, exlen); + + HeapFree(GetProcessHeap(), 0, types); +} + #define get_first_child(n) _get_first_child(__LINE__,n) static IHTMLDOMNode *_get_first_child(unsigned line, IUnknown *unk) { @@ -2146,6 +2174,10 @@ static void test_elems(IHTMLDocument2 *doc) IHTMLDOMNode_Release(node); ok(node2 == NULL, "node != NULL\n"); + test_elem_getelembytag((IUnknown*)elem, ET_OPTION, 2); + test_elem_getelembytag((IUnknown*)elem, ET_SELECT, 0); + test_elem_getelembytag((IUnknown*)elem, ET_HTML, 0); + IHTMLElement_Release(elem); }
1
0
0
0
Jacek Caban : mshtml: Added IHTMLElement2:: getElementsByTagName implementation.
by Alexandre Julliard
14 Jul '08
14 Jul '08
Module: wine Branch: master Commit: 952a54cbd933dbee18cbcc88521db11fb4ee7747 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=952a54cbd933dbee18cbcc885…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Fri Jul 11 23:45:04 2008 +0200 mshtml: Added IHTMLElement2::getElementsByTagName implementation. --- dlls/mshtml/htmlelem.c | 25 +++++++++++++++++++++++++ dlls/mshtml/htmlelem2.c | 23 +++++++++++++++++++---- dlls/mshtml/mshtml_private.h | 1 + 3 files changed, 45 insertions(+), 4 deletions(-) diff --git a/dlls/mshtml/htmlelem.c b/dlls/mshtml/htmlelem.c index 5f67356..670c615 100644 --- a/dlls/mshtml/htmlelem.c +++ b/dlls/mshtml/htmlelem.c @@ -1896,6 +1896,31 @@ IHTMLElementCollection *create_all_collection(HTMLDOMNode *node) return HTMLElementCollection_Create((IUnknown*)HTMLDOMNODE(node), buf.buf, buf.len); } +IHTMLElementCollection *create_collection_from_nodelist(HTMLDocument *doc, IUnknown *unk, nsIDOMNodeList *nslist) +{ + PRUint32 length = 0, i; + elem_vector buf; + + nsIDOMNodeList_GetLength(nslist, &length); + + buf.len = buf.size = length; + if(buf.len) { + nsIDOMNode *nsnode; + + buf.buf = heap_alloc(buf.size*sizeof(HTMLElement*)); + + for(i=0; i<length; i++) { + nsIDOMNodeList_Item(nslist, i, &nsnode); + buf.buf[i] = HTMLELEM_NODE_THIS(get_node(doc, nsnode, TRUE)); + nsIDOMNode_Release(nsnode); + } + }else { + buf.buf = NULL; + } + + return HTMLElementCollection_Create(unk, buf.buf, buf.len); +} + static IHTMLElementCollection *HTMLElementCollection_Create(IUnknown *ref_unk, HTMLElement **elems, DWORD len) { diff --git a/dlls/mshtml/htmlelem2.c b/dlls/mshtml/htmlelem2.c index d12c60c..5d0443e 100644 --- a/dlls/mshtml/htmlelem2.c +++ b/dlls/mshtml/htmlelem2.c @@ -917,12 +917,27 @@ static HRESULT WINAPI HTMLElement2_get_readyStateValue(IHTMLElement2 *iface, lon return E_NOTIMPL; } -static HRESULT WINAPI HTMLElement2_getElementByTagName(IHTMLElement2 *iface, BSTR v, +static HRESULT WINAPI HTMLElement2_getElementsByTagName(IHTMLElement2 *iface, BSTR v, IHTMLElementCollection **pelColl) { HTMLElement *This = HTMLELEM2_THIS(iface); - FIXME("(%p)->(%s %p)\n", This, debugstr_w(v), pelColl); - return E_NOTIMPL; + nsIDOMNodeList *nslist; + nsAString tag_str; + nsresult nsres; + + TRACE("(%p)->(%s %p)\n", This, debugstr_w(v), pelColl); + + nsAString_Init(&tag_str, v); + nsres = nsIDOMHTMLElement_GetElementsByTagName(This->nselem, &tag_str, &nslist); + nsAString_Finish(&tag_str); + if(NS_FAILED(nsres)) { + ERR("GetElementByTagName failed: %08x\n", nsres); + return E_FAIL; + } + + *pelColl = create_collection_from_nodelist(This->node.doc, (IUnknown*)HTMLELEM(This), nslist); + nsIDOMNodeList_Release(nslist); + return S_OK; } #undef HTMLELEM2_THIS @@ -1032,7 +1047,7 @@ static const IHTMLElement2Vtbl HTMLElement2Vtbl = { HTMLElement2_put_onbeforeeditfocus, HTMLElement2_get_onbeforeeditfocus, HTMLElement2_get_readyStateValue, - HTMLElement2_getElementByTagName, + HTMLElement2_getElementsByTagName, }; void HTMLElement2_Init(HTMLElement *This) diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h index ef7868d..88f444d 100644 --- a/dlls/mshtml/mshtml_private.h +++ b/dlls/mshtml/mshtml_private.h @@ -566,6 +566,7 @@ void doc_insert_script(HTMLDocument*,nsIDOMHTMLScriptElement*); IDispatch *script_parse_event(HTMLDocument*,LPCWSTR); IHTMLElementCollection *create_all_collection(HTMLDOMNode*); +IHTMLElementCollection *create_collection_from_nodelist(HTMLDocument*,IUnknown*,nsIDOMNodeList*); /* commands */ typedef struct {
1
0
0
0
Jacek Caban : mshtml: Allow timers to be cleaned during processing.
by Alexandre Julliard
14 Jul '08
14 Jul '08
Module: wine Branch: master Commit: 1de0055cc0d47088cb9011954cf3f05b014156fa URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1de0055cc0d47088cb9011954…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Fri Jul 11 23:44:38 2008 +0200 mshtml: Allow timers to be cleaned during processing. --- dlls/mshtml/task.c | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/dlls/mshtml/task.c b/dlls/mshtml/task.c index d863fba..93edd65 100644 --- a/dlls/mshtml/task.c +++ b/dlls/mshtml/task.c @@ -128,6 +128,8 @@ static BOOL queue_timer(thread_data_t *thread_data, task_timer_t *timer) { task_timer_t *iter; + list_remove(&timer->entry); + if(list_empty(&thread_data->timer_list) || LIST_ENTRY(list_head(&thread_data->timer_list), task_timer_t, entry)->time > timer->time) { @@ -159,6 +161,7 @@ DWORD set_task_timer(HTMLDocument *doc, DWORD msec, BOOL interval, IDispatch *di timer->doc = doc; timer->time = tc + msec; timer->interval = interval ? msec : 0; + list_init(&timer->entry); IDispatch_AddRef(disp); timer->disp = disp; @@ -363,6 +366,8 @@ static void process_task(task_t *task) static LRESULT process_timer(void) { thread_data_t *thread_data = get_thread_data(TRUE); + HTMLDocument *doc; + IDispatch *disp; DWORD tc; task_timer_t *timer; @@ -377,10 +382,9 @@ static LRESULT process_timer(void) return 0; } - list_remove(&timer->entry); - list_init(&timer->entry); - - call_disp_func(timer->doc, timer->disp); + doc = timer->doc; + disp = timer->disp; + IDispatch_AddRef(disp); if(timer->interval) { timer->time += timer->interval; @@ -388,6 +392,10 @@ static LRESULT process_timer(void) }else { release_task_timer(thread_data->thread_hwnd, timer); } + + call_disp_func(doc, disp); + + IDispatch_Release(disp); } KillTimer(thread_data->thread_hwnd, TIMER_ID);
1
0
0
0
Alexandre Julliard : msxml3: Fix compile without xml headers.
by Alexandre Julliard
14 Jul '08
14 Jul '08
Module: wine Branch: master Commit: 8e8d63933b5e904ec183f2b3eb6c8f7c52ee5c1a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8e8d63933b5e904ec183f2b3e…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Jul 14 11:48:37 2008 +0200 msxml3: Fix compile without xml headers. --- dlls/msxml3/main.c | 2 +- dlls/msxml3/msxml_private.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/msxml3/main.c b/dlls/msxml3/main.c index 1bf3a98..8c7d0d3 100644 --- a/dlls/msxml3/main.c +++ b/dlls/msxml3/main.c @@ -188,8 +188,8 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) #endif #ifdef HAVE_LIBXML2 xmlCleanupParser(); - process_detach(); #endif + process_detach(); break; } return TRUE; diff --git a/dlls/msxml3/msxml_private.h b/dlls/msxml3/msxml_private.h index f0c6093..34e4800 100644 --- a/dlls/msxml3/msxml_private.h +++ b/dlls/msxml3/msxml_private.h @@ -82,6 +82,8 @@ static inline xmlnode *impl_from_IXMLDOMNode( IXMLDOMNode *iface ) return (xmlnode *)((char*)iface - FIELD_OFFSET(xmlnode, lpVtbl)); } +extern HRESULT DOMDocument_create_from_xmldoc(xmlDocPtr xmldoc, IXMLDOMDocument2 **document); + #endif extern IXMLDOMParseError *create_parseError( LONG code, BSTR url, BSTR reason, BSTR srcText, @@ -91,8 +93,6 @@ extern HRESULT SchemaCache_create( IUnknown *pUnkOuter, LPVOID *ppObj ); extern HRESULT XMLDocument_create( IUnknown *pUnkOuter, LPVOID *ppObj ); extern HRESULT SAXXMLReader_create(IUnknown *pUnkOuter, LPVOID *ppObj ); -extern HRESULT DOMDocument_create_from_xmldoc(xmlDocPtr xmldoc, IXMLDOMDocument2 **document); - /* typelibs */ enum tid_t { IXMLDOMAttribute_tid,
1
0
0
0
Rob Shearman : rpcrt4: Ignore the return value of functions when unmarshalling a pickled procedure .
by Alexandre Julliard
14 Jul '08
14 Jul '08
Module: wine Branch: master Commit: 09f343b1355d563f998096fc92cb1db02cd62a70 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=09f343b1355d563f998096fc9…
Author: Rob Shearman <robertshearman(a)gmail.com> Date: Thu Apr 24 14:30:59 2008 +0100 rpcrt4: Ignore the return value of functions when unmarshalling a pickled procedure. --- dlls/rpcrt4/ndr_es.c | 6 +++--- dlls/rpcrt4/ndr_stubless.c | 9 +++++---- dlls/rpcrt4/ndr_stubless.h | 3 ++- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/dlls/rpcrt4/ndr_es.c b/dlls/rpcrt4/ndr_es.c index 4f70dd1..3423d39 100644 --- a/dlls/rpcrt4/ndr_es.c +++ b/dlls/rpcrt4/ndr_es.c @@ -398,7 +398,7 @@ void WINAPIV NdrMesProcEncodeDecode(handle_t Handle, const MIDL_STUB_DESC * pStu client_do_args_old_format(&pEsMsg->StubMsg, pFormat, PROXY_CALCSIZE, pEsMsg->StubMsg.StackTop, stack_size, (unsigned char *)&RetVal, - FALSE /* object_proc */); + FALSE /* object_proc */, TRUE /* ignore_retval */); pEsMsg->ByteCount = pEsMsg->StubMsg.BufferLength - mes_proc_header_buffer_size(); es_data_alloc(pEsMsg, pEsMsg->StubMsg.BufferLength); @@ -407,7 +407,7 @@ void WINAPIV NdrMesProcEncodeDecode(handle_t Handle, const MIDL_STUB_DESC * pStu client_do_args_old_format(&pEsMsg->StubMsg, pFormat, PROXY_MARSHAL, pEsMsg->StubMsg.StackTop, stack_size, (unsigned char *)&RetVal, - FALSE /* object_proc */); + FALSE /* object_proc */, TRUE /* ignore_retval */); es_data_write(pEsMsg, pEsMsg->ByteCount); break; @@ -418,7 +418,7 @@ void WINAPIV NdrMesProcEncodeDecode(handle_t Handle, const MIDL_STUB_DESC * pStu client_do_args_old_format(&pEsMsg->StubMsg, pFormat, PROXY_UNMARSHAL, pEsMsg->StubMsg.StackTop, stack_size, (unsigned char *)&RetVal, - FALSE /* object_proc */); + FALSE /* object_proc */, TRUE /* ignore_retval */); break; default: RpcRaiseException(RPC_S_INTERNAL_ERROR); diff --git a/dlls/rpcrt4/ndr_stubless.c b/dlls/rpcrt4/ndr_stubless.c index 9d28b36..275502a 100644 --- a/dlls/rpcrt4/ndr_stubless.c +++ b/dlls/rpcrt4/ndr_stubless.c @@ -441,7 +441,7 @@ static unsigned int type_stack_size(unsigned char fc) void client_do_args_old_format(PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat, int phase, unsigned char *args, unsigned short stack_size, - unsigned char *pRetVal, BOOL object_proc) + unsigned char *pRetVal, BOOL object_proc, BOOL ignore_retval) { /* current format string offset */ int current_offset = 0; @@ -492,7 +492,8 @@ void client_do_args_old_format(PMIDL_STUB_MESSAGE pStubMsg, call_marshaller(pStubMsg, pArg, pTypeFormat); break; case PROXY_UNMARSHAL: - if (pParam->param_direction == RPC_FC_RETURN_PARAM_BASETYPE) + if (!ignore_retval && + pParam->param_direction == RPC_FC_RETURN_PARAM_BASETYPE) { if (pParam->param_direction & RPC_FC_RETURN_PARAM) call_unmarshaller(pStubMsg, &pRetVal, pTypeFormat, 0); @@ -723,7 +724,7 @@ LONG_PTR WINAPIV NdrClientCall2(PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pForma else client_do_args_old_format(&stubMsg, pFormat, phase, stubMsg.StackTop, stack_size, (unsigned char *)&RetVal, - (pProcHeader->Oi_flags & RPC_FC_PROC_OIF_OBJECT)); + (pProcHeader->Oi_flags & RPC_FC_PROC_OIF_OBJECT), FALSE); break; default: ERR("shouldn't reach here. phase %d\n", phase); @@ -801,7 +802,7 @@ LONG_PTR WINAPIV NdrClientCall2(PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pForma else client_do_args_old_format(&stubMsg, pFormat, phase, stubMsg.StackTop, stack_size, (unsigned char *)&RetVal, - (pProcHeader->Oi_flags & RPC_FC_PROC_OIF_OBJECT)); + (pProcHeader->Oi_flags & RPC_FC_PROC_OIF_OBJECT), FALSE); break; default: ERR("shouldn't reach here. phase %d\n", phase); diff --git a/dlls/rpcrt4/ndr_stubless.h b/dlls/rpcrt4/ndr_stubless.h index 06b552c..9a6fb44 100644 --- a/dlls/rpcrt4/ndr_stubless.h +++ b/dlls/rpcrt4/ndr_stubless.h @@ -238,4 +238,5 @@ typedef struct _NDR_EHD_CONTEXT void client_do_args_old_format(PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat, int phase, unsigned char *args, - unsigned short stack_size, unsigned char *pRetVal, BOOL object_proc); + unsigned short stack_size, unsigned char *pRetVal, BOOL object_proc, + BOOL ignore_retval);
1
0
0
0
Rob Shearman : rpcrt4: Implement MesDecodeBufferHandleCreate and MesEncodeFixedBufferHandleCreate .
by Alexandre Julliard
14 Jul '08
14 Jul '08
Module: wine Branch: master Commit: 2b0ad6e6e7a32a1a0f35a85edde4f695154df27b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2b0ad6e6e7a32a1a0f35a85ed…
Author: Rob Shearman <robertshearman(a)gmail.com> Date: Mon Nov 5 11:21:09 2007 +0000 rpcrt4: Implement MesDecodeBufferHandleCreate and MesEncodeFixedBufferHandleCreate. --- dlls/rpcrt4/ndr_es.c | 70 +++++++++++++++++++++++++++++++++++++++++++++++ dlls/rpcrt4/rpcrt4.spec | 4 +- 2 files changed, 72 insertions(+), 2 deletions(-) diff --git a/dlls/rpcrt4/ndr_es.c b/dlls/rpcrt4/ndr_es.c index 097d8a9..4f70dd1 100644 --- a/dlls/rpcrt4/ndr_es.c +++ b/dlls/rpcrt4/ndr_es.c @@ -132,6 +132,58 @@ RPC_STATUS WINAPI MesHandleFree(handle_t Handle) return RPC_S_OK; } +/*********************************************************************** + * MesEncodeFixedBufferHandleCreate [RPCRT4.@] + */ +RPC_STATUS RPC_ENTRY MesEncodeFixedBufferHandleCreate( + char *Buffer, ULONG BufferSize, ULONG *pEncodedSize, handle_t *pHandle) +{ + MIDL_ES_MESSAGE *pEsMsg; + + TRACE("(%p, %d, %p, %p)\n", Buffer, BufferSize, pEncodedSize, pHandle); + + pEsMsg = HeapAlloc(GetProcessHeap(), 0, sizeof(*pEsMsg)); + if (!pEsMsg) + return ERROR_OUTOFMEMORY; + + init_MIDL_ES_MESSAGE(pEsMsg); + + pEsMsg->Operation = MES_ENCODE; + pEsMsg->HandleStyle = MES_FIXED_BUFFER_HANDLE; + pEsMsg->Buffer = (unsigned char *)Buffer; + pEsMsg->BufferSize = BufferSize; + pEsMsg->pEncodedSize = pEncodedSize; + + *pHandle = (handle_t)pEsMsg; + + return RPC_S_OK;} + +/*********************************************************************** + * MesDecodeBufferHandleCreate [RPCRT4.@] + */ +RPC_STATUS RPC_ENTRY MesDecodeBufferHandleCreate( + char *Buffer, ULONG BufferSize, handle_t *pHandle) +{ + MIDL_ES_MESSAGE *pEsMsg; + + TRACE("(%p, %d, %p)\n", Buffer, BufferSize, pHandle); + + pEsMsg = HeapAlloc(GetProcessHeap(), 0, sizeof(*pEsMsg)); + if (!pEsMsg) + return ERROR_OUTOFMEMORY; + + init_MIDL_ES_MESSAGE(pEsMsg); + + pEsMsg->Operation = MES_DECODE; + pEsMsg->HandleStyle = MES_FIXED_BUFFER_HANDLE; + pEsMsg->Buffer = (unsigned char *)Buffer; + pEsMsg->BufferSize = BufferSize; + + *pHandle = (handle_t)pEsMsg; + + return RPC_S_OK; +} + static void es_data_alloc(MIDL_ES_MESSAGE *pEsMsg, ULONG size) { if (pEsMsg->HandleStyle == MES_INCREMENTAL_HANDLE) @@ -145,6 +197,11 @@ static void es_data_alloc(MIDL_ES_MESSAGE *pEsMsg, ULONG size) RpcRaiseException(ERROR_OUTOFMEMORY); } } + else if (pEsMsg->HandleStyle == MES_FIXED_BUFFER_HANDLE) + { + TRACE("%d with fixed buffer handle\n", size); + pEsMsg->StubMsg.Buffer = pEsMsg->Buffer; + } pEsMsg->StubMsg.RpcMsg->Buffer = pEsMsg->StubMsg.BufferStart = pEsMsg->StubMsg.Buffer; } @@ -161,6 +218,14 @@ static void es_data_read(MIDL_ES_MESSAGE *pEsMsg, ULONG size) RpcRaiseException(ERROR_OUTOFMEMORY); } } + else + { + TRACE("%d from fixed or dynamic buffer handle\n", size); + /* FIXME: validate BufferSize? */ + pEsMsg->StubMsg.Buffer = pEsMsg->Buffer; + pEsMsg->Buffer += size; + pEsMsg->BufferSize -= size; + } pEsMsg->StubMsg.BufferLength = size; pEsMsg->StubMsg.RpcMsg->Buffer = pEsMsg->StubMsg.BufferStart = pEsMsg->StubMsg.Buffer; pEsMsg->StubMsg.BufferEnd = pEsMsg->StubMsg.Buffer + size; @@ -173,6 +238,11 @@ static void es_data_write(MIDL_ES_MESSAGE *pEsMsg, ULONG size) TRACE("%d to incremental handle\n", size); pEsMsg->Write(pEsMsg->UserState, (char *)pEsMsg->StubMsg.BufferStart, size); } + else + { + TRACE("%d to dynamic or fixed buffer handle\n", size); + *pEsMsg->pEncodedSize += size; + } } static inline ULONG mes_proc_header_buffer_size(void) diff --git a/dlls/rpcrt4/rpcrt4.spec b/dlls/rpcrt4/rpcrt4.spec index f2fa80a..1d33c64 100644 --- a/dlls/rpcrt4/rpcrt4.spec +++ b/dlls/rpcrt4/rpcrt4.spec @@ -97,10 +97,10 @@ @ stub MIDL_wchar_strcpy @ stub MIDL_wchar_strlen @ stub MesBufferHandleReset -@ stub MesDecodeBufferHandleCreate +@ stdcall MesDecodeBufferHandleCreate(ptr long ptr) @ stdcall MesDecodeIncrementalHandleCreate(ptr ptr ptr) @ stub MesEncodeDynBufferHandleCreate -@ stub MesEncodeFixedBufferHandleCreate +@ stdcall MesEncodeFixedBufferHandleCreate(ptr long ptr ptr) @ stdcall MesEncodeIncrementalHandleCreate(ptr ptr ptr ptr) @ stdcall MesHandleFree(ptr) @ stdcall MesIncrementalHandleReset(ptr ptr ptr ptr ptr long)
1
0
0
0
Rob Shearman : rpcrt4: Implement NdrMesProcEncodeDecode.
by Alexandre Julliard
14 Jul '08
14 Jul '08
Module: wine Branch: master Commit: 734094ed2c2db2187f6c6785203f5a76cc22ccaa URL:
http://source.winehq.org/git/wine.git/?a=commit;h=734094ed2c2db2187f6c67852…
Author: Rob Shearman <robertshearman(a)gmail.com> Date: Mon Nov 5 11:16:43 2007 +0000 rpcrt4: Implement NdrMesProcEncodeDecode. --- dlls/rpcrt4/ndr_es.c | 230 ++++++++++++++++++++++++++++++++++++++++++++ dlls/rpcrt4/ndr_stubless.c | 46 +++++---- dlls/rpcrt4/ndr_stubless.h | 4 + dlls/rpcrt4/rpcrt4.spec | 2 +- 4 files changed, 259 insertions(+), 23 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=734094ed2c2db2187f6c6…
1
0
0
0
Rob Shearman : rpcrt4: Implement MesEncodeIncrementalHandleCreate, MesDecodeIncrementalHandleCreate, MesIncrementalHandleReset and MesHandleFree.
by Alexandre Julliard
14 Jul '08
14 Jul '08
Module: wine Branch: master Commit: 0879041cd240aaa4f2819c2fb4e2a8858f00e98f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0879041cd240aaa4f2819c2fb…
Author: Rob Shearman <robertshearman(a)gmail.com> Date: Sun Nov 4 23:10:32 2007 +0000 rpcrt4: Implement MesEncodeIncrementalHandleCreate, MesDecodeIncrementalHandleCreate, MesIncrementalHandleReset and MesHandleFree. --- dlls/rpcrt4/Makefile.in | 1 + dlls/rpcrt4/ndr_es.c | 130 +++++++++++++++++++++++++++++++++++++++++++++++ dlls/rpcrt4/rpcrt4.spec | 8 ++-- 3 files changed, 135 insertions(+), 4 deletions(-) diff --git a/dlls/rpcrt4/Makefile.in b/dlls/rpcrt4/Makefile.in index 8672ced..14ee4a3 100644 --- a/dlls/rpcrt4/Makefile.in +++ b/dlls/rpcrt4/Makefile.in @@ -14,6 +14,7 @@ C_SRCS = \ cstub.c \ ndr_clientserver.c \ ndr_contexthandle.c \ + ndr_es.c \ ndr_fullpointer.c \ ndr_marshall.c \ ndr_ole.c \ diff --git a/dlls/rpcrt4/ndr_es.c b/dlls/rpcrt4/ndr_es.c new file mode 100644 index 0000000..4b32602 --- /dev/null +++ b/dlls/rpcrt4/ndr_es.c @@ -0,0 +1,130 @@ +/* + * NDR Serialization Services + * + * Copyright (c) 2007 Robert Shearman for CodeWeavers + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include <stdarg.h> +#include <stdio.h> + +#include "windef.h" +#include "winbase.h" +#include "winerror.h" +#include "rpc.h" +#include "midles.h" + +#include "ndr_misc.h" + +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(ole); + +static inline void init_MIDL_ES_MESSAGE(MIDL_ES_MESSAGE *pEsMsg) +{ + memset(pEsMsg, 0, sizeof(*pEsMsg)); + /* even if we are unmarshalling, as we don't want pointers to be pointed + * to buffer memory */ + pEsMsg->StubMsg.IsClient = TRUE; +} + +/*********************************************************************** + * MesEncodeIncrementalHandleCreate [RPCRT4.@] + */ +RPC_STATUS WINAPI MesEncodeIncrementalHandleCreate( + void *UserState, MIDL_ES_ALLOC AllocFn, MIDL_ES_WRITE WriteFn, + handle_t *pHandle) +{ + MIDL_ES_MESSAGE *pEsMsg; + + TRACE("(%p, %p, %p, %p)\n", UserState, AllocFn, WriteFn, pHandle); + + pEsMsg = HeapAlloc(GetProcessHeap(), 0, sizeof(*pEsMsg)); + if (!pEsMsg) + return ERROR_OUTOFMEMORY; + + init_MIDL_ES_MESSAGE(pEsMsg); + + pEsMsg->Operation = MES_ENCODE; + pEsMsg->UserState = UserState; + pEsMsg->HandleStyle = MES_INCREMENTAL_HANDLE; + pEsMsg->Alloc = AllocFn; + pEsMsg->Write = WriteFn; + + *pHandle = (handle_t)pEsMsg; + + return RPC_S_OK; +} + +/*********************************************************************** + * MesDecodeIncrementalHandleCreate [RPCRT4.@] + */ +RPC_STATUS WINAPI MesDecodeIncrementalHandleCreate( + void *UserState, MIDL_ES_READ ReadFn, handle_t *pHandle) +{ + MIDL_ES_MESSAGE *pEsMsg; + + TRACE("(%p, %p, %p)\n", UserState, ReadFn, pHandle); + + pEsMsg = HeapAlloc(GetProcessHeap(), 0, sizeof(*pEsMsg)); + if (!pEsMsg) + return ERROR_OUTOFMEMORY; + + init_MIDL_ES_MESSAGE(pEsMsg); + + pEsMsg->Operation = MES_DECODE; + pEsMsg->UserState = UserState; + pEsMsg->HandleStyle = MES_INCREMENTAL_HANDLE; + pEsMsg->Read = ReadFn; + + *pHandle = (handle_t)pEsMsg; + + return RPC_S_OK; +} + +/*********************************************************************** + * MesIncrementalHandleReset [RPCRT4.@] + */ +RPC_STATUS WINAPI MesIncrementalHandleReset( + handle_t Handle, void *UserState, MIDL_ES_ALLOC AllocFn, + MIDL_ES_WRITE WriteFn, MIDL_ES_READ ReadFn, MIDL_ES_CODE Operation) +{ + MIDL_ES_MESSAGE *pEsMsg = (MIDL_ES_MESSAGE *)Handle; + + TRACE("(%p, %p, %p, %p, %p, %d)\n", Handle, UserState, AllocFn, + WriteFn, ReadFn, Operation); + + init_MIDL_ES_MESSAGE(pEsMsg); + + pEsMsg->Operation = Operation; + pEsMsg->UserState = UserState; + pEsMsg->HandleStyle = MES_INCREMENTAL_HANDLE; + pEsMsg->Alloc = AllocFn; + pEsMsg->Write = WriteFn; + pEsMsg->Read = ReadFn; + + return RPC_S_OK; +} + +/*********************************************************************** + * MesHandleFree [RPCRT4.@] + */ +RPC_STATUS WINAPI MesHandleFree(handle_t Handle) +{ + TRACE("(%p)\n", Handle); + HeapFree(GetProcessHeap(), 0, Handle); + return RPC_S_OK; +} diff --git a/dlls/rpcrt4/rpcrt4.spec b/dlls/rpcrt4/rpcrt4.spec index 95f13d8..3300512 100644 --- a/dlls/rpcrt4/rpcrt4.spec +++ b/dlls/rpcrt4/rpcrt4.spec @@ -98,12 +98,12 @@ @ stub MIDL_wchar_strlen @ stub MesBufferHandleReset @ stub MesDecodeBufferHandleCreate -@ stub MesDecodeIncrementalHandleCreate +@ stdcall MesDecodeIncrementalHandleCreate(ptr ptr ptr) @ stub MesEncodeDynBufferHandleCreate @ stub MesEncodeFixedBufferHandleCreate -@ stub MesEncodeIncrementalHandleCreate -@ stub MesHandleFree -@ stub MesIncrementalHandleReset +@ stdcall MesEncodeIncrementalHandleCreate(ptr ptr ptr ptr) +@ stdcall MesHandleFree(ptr) +@ stdcall MesIncrementalHandleReset(ptr ptr ptr ptr ptr long) @ stub MesInqProcEncodingId @ stdcall NDRCContextBinding(ptr) @ stdcall NDRCContextMarshall(ptr ptr)
1
0
0
0
← Newer
1
...
55
56
57
58
59
60
61
...
112
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
Results per page:
10
25
50
100
200