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
December 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
2 participants
1225 discussions
Start a n
N
ew thread
Michael Karcher : msxml3: Remove attach_xmldoc(This, NULL) calls.
by Alexandre Julliard
01 Dec '08
01 Dec '08
Module: wine Branch: master Commit: 8b293040a370ff756beab0692ac316d720becd96 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8b293040a370ff756beab0692…
Author: Michael Karcher <wine(a)mkarcher.dialup.fu-berlin.de> Date: Sat Nov 29 10:52:16 2008 +0100 msxml3: Remove attach_xmldoc(This, NULL) calls. This->node should never be zero. Each IXMLDOMNode (and derived interfaces) always represents a present libxml data object. There is no no-data IXMLDOMNode, although there might be documents without a root element. --- dlls/msxml3/domdoc.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/dlls/msxml3/domdoc.c b/dlls/msxml3/domdoc.c index 860cd60..c8eec39 100644 --- a/dlls/msxml3/domdoc.c +++ b/dlls/msxml3/domdoc.c @@ -1364,8 +1364,6 @@ static HRESULT WINAPI domdoc_load( assert( This->node ); - attach_xmldoc(This->node, NULL); - switch( V_VT(&xmlSource) ) { case VT_BSTR: @@ -1549,8 +1547,6 @@ static HRESULT WINAPI domdoc_loadXML( assert ( This->node ); - attach_xmldoc( This->node, NULL ); - if ( isSuccessful ) { *isSuccessful = VARIANT_FALSE;
1
0
0
0
Michael Karcher : msxml3: Specialize attach_xmlnode to XML documents.
by Alexandre Julliard
01 Dec '08
01 Dec '08
Module: wine Branch: master Commit: 1c49bc83ae4630dba9b5a86c37042c34859160c4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1c49bc83ae4630dba9b5a86c3…
Author: Michael Karcher <wine(a)mkarcher.dialup.fu-berlin.de> Date: Sat Nov 29 10:52:06 2008 +0100 msxml3: Specialize attach_xmlnode to XML documents. attach_xmlnode is only used to attach XML document nodes, and a cast is needed on each call. Rename it to attach_xmldoc, change the parameter type to move the cast at one point into the function. --- dlls/msxml3/domdoc.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/dlls/msxml3/domdoc.c b/dlls/msxml3/domdoc.c index f5b7aff..860cd60 100644 --- a/dlls/msxml3/domdoc.c +++ b/dlls/msxml3/domdoc.c @@ -209,14 +209,14 @@ HRESULT xmldoc_remove_orphan(xmlDocPtr doc, xmlNodePtr node) return S_FALSE; } -static void attach_xmlnode( IXMLDOMNode *node, xmlNodePtr xml ) +static void attach_xmldoc( IXMLDOMNode *node, xmlDocPtr xml ) { xmlnode *This = impl_from_IXMLDOMNode( node ); if(This->node) xmldoc_release(This->node->doc); - This->node = xml; + This->node = (xmlNodePtr) xml; if(This->node) xmldoc_add_ref(This->node->doc); @@ -345,7 +345,7 @@ static HRESULT WINAPI xmldoc_IPersistStream_Load( } xmldoc->_private = create_priv(); - attach_xmlnode( This->node, (xmlNodePtr)xmldoc ); + attach_xmldoc( This->node, xmldoc ); return S_OK; } @@ -1324,7 +1324,7 @@ static HRESULT domdoc_onDataAvailable(void *obj, char *ptr, DWORD len) xmldoc = doparse( ptr, len ); if(xmldoc) { xmldoc->_private = create_priv(); - attach_xmlnode(This->node, (xmlNodePtr) xmldoc); + attach_xmldoc(This->node, xmldoc); } return S_OK; @@ -1364,7 +1364,7 @@ static HRESULT WINAPI domdoc_load( assert( This->node ); - attach_xmlnode(This->node, NULL); + attach_xmldoc(This->node, NULL); switch( V_VT(&xmlSource) ) { @@ -1379,7 +1379,7 @@ static HRESULT WINAPI domdoc_load( { domdoc *newDoc = impl_from_IXMLDOMDocument2( pNewDoc ); xmldoc = xmlCopyDoc(get_doc(newDoc), 1); - attach_xmlnode(This->node, (xmlNodePtr) xmldoc); + attach_xmldoc(This->node, xmldoc); *isSuccessful = VARIANT_TRUE; @@ -1440,7 +1440,7 @@ static HRESULT WINAPI domdoc_load( if(!filename || FAILED(hr)) { xmldoc = xmlNewDoc(NULL); xmldoc->_private = create_priv(); - attach_xmlnode(This->node, (xmlNodePtr) xmldoc); + attach_xmldoc(This->node, xmldoc); hr = S_FALSE; } @@ -1549,7 +1549,7 @@ static HRESULT WINAPI domdoc_loadXML( assert ( This->node ); - attach_xmlnode( This->node, NULL ); + attach_xmldoc( This->node, NULL ); if ( isSuccessful ) { @@ -1572,7 +1572,7 @@ static HRESULT WINAPI domdoc_loadXML( xmldoc = xmlNewDoc(NULL); xmldoc->_private = create_priv(); - attach_xmlnode( This->node, (xmlNodePtr) xmldoc ); + attach_xmldoc( This->node, xmldoc ); return hr; }
1
0
0
0
Michael Karcher : msxml3: Move attach_xmlnode.c to domdoc.c.
by Alexandre Julliard
01 Dec '08
01 Dec '08
Module: wine Branch: master Commit: b282572ee31eca8d076139bfda3f44a663f70de6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b282572ee31eca8d076139bfd…
Author: Michael Karcher <wine(a)mkarcher.dialup.fu-berlin.de> Date: Sat Nov 29 10:51:58 2008 +0100 msxml3: Move attach_xmlnode.c to domdoc.c. --- dlls/msxml3/domdoc.c | 14 ++++++++++++++ dlls/msxml3/msxml_private.h | 2 -- dlls/msxml3/node.c | 14 -------------- 3 files changed, 14 insertions(+), 16 deletions(-) diff --git a/dlls/msxml3/domdoc.c b/dlls/msxml3/domdoc.c index c685889..f5b7aff 100644 --- a/dlls/msxml3/domdoc.c +++ b/dlls/msxml3/domdoc.c @@ -209,6 +209,20 @@ HRESULT xmldoc_remove_orphan(xmlDocPtr doc, xmlNodePtr node) return S_FALSE; } +static void attach_xmlnode( IXMLDOMNode *node, xmlNodePtr xml ) +{ + xmlnode *This = impl_from_IXMLDOMNode( node ); + + if(This->node) + xmldoc_release(This->node->doc); + + This->node = xml; + if(This->node) + xmldoc_add_ref(This->node->doc); + + return; +} + static inline domdoc *impl_from_IXMLDOMDocument2( IXMLDOMDocument2 *iface ) { return (domdoc *)((char*)iface - FIELD_OFFSET(domdoc, lpVtbl)); diff --git a/dlls/msxml3/msxml_private.h b/dlls/msxml3/msxml_private.h index aa14b9b..e33b994 100644 --- a/dlls/msxml3/msxml_private.h +++ b/dlls/msxml3/msxml_private.h @@ -54,8 +54,6 @@ extern IUnknown *create_doc_entity_ref( xmlNodePtr entity ); extern HRESULT queryresult_create( xmlNodePtr, LPWSTR, IXMLDOMNodeList ** ); -extern void attach_xmlnode( IXMLDOMNode *node, xmlNodePtr xmlnode ); - /* data accessors */ xmlNodePtr xmlNodePtr_from_domnode( IXMLDOMNode *iface, xmlElementType type ); diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c index 3d6f2f3..aa3b748 100644 --- a/dlls/msxml3/node.c +++ b/dlls/msxml3/node.c @@ -85,20 +85,6 @@ xmlNodePtr xmlNodePtr_from_domnode( IXMLDOMNode *iface, xmlElementType type ) return This->node; } -void attach_xmlnode( IXMLDOMNode *node, xmlNodePtr xml ) -{ - xmlnode *This = impl_from_IXMLDOMNode( node ); - - if(This->node) - xmldoc_release(This->node->doc); - - This->node = xml; - if(This->node) - xmldoc_add_ref(This->node->doc); - - return; -} - static HRESULT WINAPI xmlnode_QueryInterface( IXMLDOMNode *iface, REFIID riid,
1
0
0
0
Michael Karcher : msxml3: Quiet noisy fixmes.
by Alexandre Julliard
01 Dec '08
01 Dec '08
Module: wine Branch: master Commit: a6594da463e338043a2350739be4715011472fa3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a6594da463e338043a2350739…
Author: Michael Karcher <wine(a)mkarcher.dialup.fu-berlin.de> Date: Sat Nov 29 10:51:44 2008 +0100 msxml3: Quiet noisy fixmes. The FIXME messages for unknown interfaces should not be emitted for interfaces that should not get implemented. Origin 8 spams you with these messsages. --- dlls/msxml3/cdata.c | 6 ++++++ dlls/msxml3/text.c | 7 +++++++ 2 files changed, 13 insertions(+), 0 deletions(-) diff --git a/dlls/msxml3/cdata.c b/dlls/msxml3/cdata.c index aa59ec3..dc7399b 100644 --- a/dlls/msxml3/cdata.c +++ b/dlls/msxml3/cdata.c @@ -69,6 +69,12 @@ static HRESULT WINAPI domcdata_QueryInterface( { return IUnknown_QueryInterface(This->node_unk, riid, ppvObject); } + else if ( IsEqualGUID( riid, &IID_IXMLDOMText ) || + IsEqualGUID( riid, &IID_IXMLDOMElement ) ) + { + TRACE("Unsupported interface\n"); + return E_NOINTERFACE; + } else { FIXME("Unsupported interface %s\n", debugstr_guid(riid)); diff --git a/dlls/msxml3/text.c b/dlls/msxml3/text.c index f8e1fc4..c39fd07 100644 --- a/dlls/msxml3/text.c +++ b/dlls/msxml3/text.c @@ -70,6 +70,13 @@ static HRESULT WINAPI domtext_QueryInterface( { return IUnknown_QueryInterface(This->node_unk, riid, ppvObject); } + else if ( IsEqualGUID( riid, &IID_IXMLDOMElement ) || + IsEqualGUID( riid, &IID_IXMLDOMCDATASection ) ) + { + /* IXMLDOMText is known to be correct in not implementing these */ + TRACE("Unsupported interface\n"); + return E_NOINTERFACE; + } else { FIXME("Unsupported interface %s\n", debugstr_guid(riid));
1
0
0
0
Michael Karcher : msxml3/tests: Fix BSTR leak.
by Alexandre Julliard
01 Dec '08
01 Dec '08
Module: wine Branch: master Commit: aefe3456fbb9b7c4c9a9bd602389edec3c5cff1a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=aefe3456fbb9b7c4c9a9bd602…
Author: Michael Karcher <wine(a)mkarcher.dialup.fu-berlin.de> Date: Sat Nov 29 10:51:32 2008 +0100 msxml3/tests: Fix BSTR leak. --- dlls/msxml3/tests/domdoc.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c index 4cff3cc..bac7e3f 100644 --- a/dlls/msxml3/tests/domdoc.c +++ b/dlls/msxml3/tests/domdoc.c @@ -3856,6 +3856,7 @@ static void test_NodeTypeValue(void) hr = IXMLDOMNode_get_nodeTypedValue(pNode, &v); ok(hr == S_OK, "ret %08x\n", hr ); ok(!lstrcmpW( V_BSTR(&v), _bstr_("Wine") ), "incorrect value\n"); + VariantClear( &v ); IXMLDOMNode_Release(pNode); }
1
0
0
0
Michael Karcher : msxml3: Avoid duplicate encoding.
by Alexandre Julliard
01 Dec '08
01 Dec '08
Module: wine Branch: master Commit: e55da04e77ddebb1bba378b9b9e6538f0e664b30 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e55da04e77ddebb1bba378b9b…
Author: Michael Karcher <wine(a)mkarcher.dialup.fu-berlin.de> Date: Sat Nov 29 10:51:20 2008 +0100 msxml3: Avoid duplicate encoding. The libxml documentation suggests to either use xmlEncodedEntitiesReentrant or xmlEncodeSpecialChars, but if you apply both, you end up producing "&amp;". --- dlls/msxml3/node.c | 8 +++----- dlls/msxml3/tests/domdoc.c | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c index 19cee8f..3d6f2f3 100644 --- a/dlls/msxml3/node.c +++ b/dlls/msxml3/node.c @@ -920,7 +920,7 @@ static HRESULT WINAPI xmlnode_put_text( BSTR text) { xmlnode *This = impl_from_IXMLDOMNode( iface ); - xmlChar *str, *str2, *str3; + xmlChar *str, *str2; TRACE("%p\n", This); @@ -937,11 +937,9 @@ static HRESULT WINAPI xmlnode_put_text( /* Escape the string. */ str2 = xmlEncodeEntitiesReentrant(This->node->doc, str); HeapFree(GetProcessHeap(), 0, str); - str3 = xmlEncodeSpecialChars(This->node->doc, str2); - xmlFree(str2); - xmlNodeSetContent(This->node, str3); - xmlFree(str3); + xmlNodeSetContent(This->node, str2); + xmlFree(str2); return S_OK; } diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c index e27c506..4cff3cc 100644 --- a/dlls/msxml3/tests/domdoc.c +++ b/dlls/msxml3/tests/domdoc.c @@ -176,6 +176,8 @@ static WCHAR szElementXML[] = {'<','E','l','e','T','e','s','t','/','>',0 }; static WCHAR szElementXML2[] = {'<','E','l','e','T','e','s','t',' ','A','t','t','r','=','"','"','/','>',0 }; static WCHAR szElementXML3[] = {'<','E','l','e','T','e','s','t',' ','A','t','t','r','=','"','"','>', 'T','e','s','t','i','n','g','N','o','d','e','<','/','E','l','e','T','e','s','t','>',0 }; +static WCHAR szElementXML4[] = {'<','E','l','e','T','e','s','t',' ','A','t','t','r','=','"','"','>', + '&','a','m','p',';','x',' ',0x2103,'<','/','E','l','e','T','e','s','t','>',0 }; static WCHAR szAttribute[] = {'A','t','t','r',0 }; static WCHAR szAttributeXML[] = {'A','t','t','r','=','"','"',0 }; @@ -190,6 +192,7 @@ static WCHAR szDocFragmentText[] = {'#','d','o','c','u','m','e','n','t','-','f', static WCHAR szEntityRef[] = {'e','n','t','i','t','y','r','e','f',0 }; static WCHAR szEntityRefXML[] = {'&','e','n','t','i','t','y','r','e','f',';',0 }; +static WCHAR szStrangeChars[] = {'&','x',' ',0x2103, 0}; #define expect_bstr_eq_and_free(bstr, expect) { \ BSTR bstrExp = alloc_str_from_narrow(expect); \ @@ -2893,6 +2896,22 @@ static void test_xmlTypes(void) ok( !lstrcmpW( str, szElementXML3 ), "incorrect element xml\n"); SysFreeString(str); + /* Test for reversible escaping */ + str = SysAllocString( szStrangeChars ); + hr = IXMLDOMElement_put_text(pElement, str); + ok(hr == S_OK, "ret %08x\n", hr ); + SysFreeString( str ); + + hr = IXMLDOMElement_get_xml(pElement, &str); + ok(hr == S_OK, "ret %08x\n", hr ); + ok( !lstrcmpW( str, szElementXML4 ), "incorrect element xml\n"); + SysFreeString(str); + + hr = IXMLDOMElement_get_text(pElement, &str); + ok(hr == S_OK, "ret %08x\n", hr ); + ok( !lstrcmpW( str, szStrangeChars ), "incorrect element text\n"); + SysFreeString(str); + IXMLDOMElement_Release(pElement); }
1
0
0
0
Jeff Zaroyko : ntdll: Avoid NULL deref in RtlDeleteTimer.
by Alexandre Julliard
01 Dec '08
01 Dec '08
Module: wine Branch: master Commit: 6c597bac2e91c84b5c18ef820295cb5a1e642145 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6c597bac2e91c84b5c18ef820…
Author: Jeff Zaroyko <jeffz(a)jeffz.name> Date: Sat Nov 29 09:51:45 2008 +1100 ntdll: Avoid NULL deref in RtlDeleteTimer. --- dlls/ntdll/tests/rtl.c | 11 +++++++++++ dlls/ntdll/threadpool.c | 5 ++++- 2 files changed, 15 insertions(+), 1 deletions(-) diff --git a/dlls/ntdll/tests/rtl.c b/dlls/ntdll/tests/rtl.c index 415f0db..fffe9ac 100644 --- a/dlls/ntdll/tests/rtl.c +++ b/dlls/ntdll/tests/rtl.c @@ -49,6 +49,7 @@ typedef struct _RTL_HANDLE_TABLE static HMODULE hntdll = 0; static SIZE_T (WINAPI *pRtlCompareMemory)(LPCVOID,LPCVOID,SIZE_T); static SIZE_T (WINAPI *pRtlCompareMemoryUlong)(PULONG, SIZE_T, ULONG); +static NTSTATUS (WINAPI *pRtlDeleteTimer)(HANDLE, HANDLE, HANDLE); static VOID (WINAPI *pRtlMoveMemory)(LPVOID,LPCVOID,SIZE_T); static VOID (WINAPI *pRtlFillMemory)(LPVOID,SIZE_T,BYTE); static VOID (WINAPI *pRtlFillMemoryUlong)(LPVOID,SIZE_T,ULONG); @@ -80,6 +81,7 @@ static void InitFunctionPtrs(void) if (hntdll) { pRtlCompareMemory = (void *)GetProcAddress(hntdll, "RtlCompareMemory"); pRtlCompareMemoryUlong = (void *)GetProcAddress(hntdll, "RtlCompareMemoryUlong"); + pRtlDeleteTimer = (void *)GetProcAddress(hntdll, "RtlDeleteTimer"); pRtlMoveMemory = (void *)GetProcAddress(hntdll, "RtlMoveMemory"); pRtlFillMemory = (void *)GetProcAddress(hntdll, "RtlFillMemory"); pRtlFillMemoryUlong = (void *)GetProcAddress(hntdll, "RtlFillMemoryUlong"); @@ -930,6 +932,13 @@ static void test_RtlAllocateAndInitializeSid(void) ok(ret == STATUS_INVALID_SID, "wrong error %08x\n", ret); } +static void test_RtlDeleteTimer(void) +{ + NTSTATUS ret; + ret = pRtlDeleteTimer(NULL, NULL, NULL); + ok(ret == STATUS_INVALID_PARAMETER_1, "expected STATUS_INVALID_PARAMETER_1, got %x\n", ret); +} + START_TEST(rtl) { InitFunctionPtrs(); @@ -962,4 +971,6 @@ START_TEST(rtl) test_HandleTables(); if (pRtlAllocateAndInitializeSid) test_RtlAllocateAndInitializeSid(); + if (pRtlDeleteTimer) + test_RtlDeleteTimer(); } diff --git a/dlls/ntdll/threadpool.c b/dlls/ntdll/threadpool.c index 9c0dafe..af42b30 100644 --- a/dlls/ntdll/threadpool.c +++ b/dlls/ntdll/threadpool.c @@ -1005,10 +1005,13 @@ NTSTATUS WINAPI RtlDeleteTimer(HANDLE TimerQueue, HANDLE Timer, HANDLE CompletionEvent) { struct queue_timer *t = Timer; - struct timer_queue *q = t->q; + struct timer_queue *q; NTSTATUS status = STATUS_PENDING; HANDLE event = NULL; + if (!Timer) + return STATUS_INVALID_PARAMETER_1; + q = t->q; if (CompletionEvent == INVALID_HANDLE_VALUE) status = NtCreateEvent(&event, EVENT_ALL_ACCESS, NULL, FALSE, FALSE); else if (CompletionEvent)
1
0
0
0
Andrew Riedi : user32: The frames of .ani cursors are .ico's, not .cur's.
by Alexandre Julliard
01 Dec '08
01 Dec '08
Module: wine Branch: master Commit: 63908f039b7eba1778a63eb9a7478ba666c0aba5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=63908f039b7eba1778a63eb9a…
Author: Andrew Riedi <andrewriedi(a)gmail.com> Date: Tue Nov 25 23:10:29 2008 -0800 user32: The frames of .ani cursors are .ico's, not .cur's. --- dlls/user32/cursoricon.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/user32/cursoricon.c b/dlls/user32/cursoricon.c index 9729269..8049a67 100644 --- a/dlls/user32/cursoricon.c +++ b/dlls/user32/cursoricon.c @@ -1008,7 +1008,7 @@ static HCURSOR CURSORICON_CreateIconFromANI( const LPBYTE bits, DWORD bits_size, FIXME("Loading all frames for .ani cursors not implemented.\n"); icon_data = fram_chunk.data + (2 * sizeof(DWORD)); - entry = CURSORICON_FindBestCursorFile( (CURSORICONFILEDIR *) icon_data, + entry = CURSORICON_FindBestIconFile( (CURSORICONFILEDIR *) icon_data, width, height, colors ); frame_bits = HeapAlloc( GetProcessHeap(), 0, entry->dwDIBSize );
1
0
0
0
Andrew Riedi : user32: Cursors can have more than one color.
by Alexandre Julliard
01 Dec '08
01 Dec '08
Module: wine Branch: master Commit: 506f77b8d6835e2f69db32a0d434d914e63bdd2f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=506f77b8d6835e2f69db32a0d…
Author: Andrew Riedi <andrewriedi(a)gmail.com> Date: Tue Nov 25 23:07:15 2008 -0800 user32: Cursors can have more than one color. --- dlls/user32/cursoricon.c | 21 ++++++++++----------- 1 files changed, 10 insertions(+), 11 deletions(-) diff --git a/dlls/user32/cursoricon.c b/dlls/user32/cursoricon.c index 655a74a..9729269 100644 --- a/dlls/user32/cursoricon.c +++ b/dlls/user32/cursoricon.c @@ -544,8 +544,8 @@ static BOOL CURSORICON_GetResIconEntry( LPVOID dir, int n, * CURSORICON_FindBestCursor * * Find the cursor closest to the requested size. - * FIXME: parameter 'color' ignored and entries with more than 1 bpp - * ignored too + * + * FIXME: parameter 'color' ignored. */ static int CURSORICON_FindBestCursor( LPVOID dir, fnGetCIEntry get_entry, int width, int height, int color ) @@ -562,8 +562,7 @@ static int CURSORICON_FindBestCursor( LPVOID dir, fnGetCIEntry get_entry, for ( i = 0; get_entry( dir, i, &cx, &cy, &bits ); i++ ) { if ((cx <= width) && (cy <= height) && - (cx > maxwidth) && (cy > maxheight) && - (bits == 1)) + (cx > maxwidth) && (cy > maxheight)) { bestEntry = i; maxwidth = cx; @@ -577,8 +576,7 @@ static int CURSORICON_FindBestCursor( LPVOID dir, fnGetCIEntry get_entry, maxwidth = maxheight = 255; for ( i = 0; get_entry( dir, i, &cx, &cy, &bits ); i++ ) { - if (((cx < maxwidth) && (cy < maxheight) && (bits == 1)) || - (bestEntry==-1)) + if (((cx < maxwidth) && (cy < maxheight)) || (bestEntry == -1)) { bestEntry = i; maxwidth = cx; @@ -958,7 +956,7 @@ static void riff_find_chunk( DWORD chunk_id, DWORD chunk_type, const riff_chunk_ * \- CHUNK:icon */ static HCURSOR CURSORICON_CreateIconFromANI( const LPBYTE bits, DWORD bits_size, - INT width, INT height ) + INT width, INT height, INT colors ) { HCURSOR cursor; ani_header header = {0}; @@ -1011,7 +1009,7 @@ static HCURSOR CURSORICON_CreateIconFromANI( const LPBYTE bits, DWORD bits_size, icon_data = fram_chunk.data + (2 * sizeof(DWORD)); entry = CURSORICON_FindBestCursorFile( (CURSORICONFILEDIR *) icon_data, - width, height, 1 ); + width, height, colors ); frame_bits = HeapAlloc( GetProcessHeap(), 0, entry->dwDIBSize ); memcpy( frame_bits, icon_data + entry->dwDIBOffset, entry->dwDIBSize ); @@ -1099,7 +1097,8 @@ static HICON CURSORICON_LoadFromFile( LPCWSTR filename, /* Check for .ani. */ if (memcmp( bits, "RIFF", 4 ) == 0) { - hIcon = CURSORICON_CreateIconFromANI( bits, filesize, width, height ); + hIcon = CURSORICON_CreateIconFromANI( bits, filesize, width, height, + colors ); goto end; } @@ -1187,7 +1186,7 @@ static HICON CURSORICON_Load(HINSTANCE hInstance, LPCWSTR name, if (!(handle = LoadResource( hInstance, hRsrc ))) return 0; if (!(dir = LockResource( handle ))) return 0; if (fCursor) - dirEntry = CURSORICON_FindBestCursorRes( dir, width, height, 1); + dirEntry = CURSORICON_FindBestCursorRes( dir, width, height, colors ); else dirEntry = CURSORICON_FindBestIconRes( dir, width, height, colors ); if (!dirEntry) return 0; @@ -1799,7 +1798,7 @@ INT WINAPI LookupIconIdFromDirectoryEx( LPBYTE xdir, BOOL bIcon, if( bIcon ) entry = CURSORICON_FindBestIconRes( dir, width, height, colors ); else - entry = CURSORICON_FindBestCursorRes( dir, width, height, 1); + entry = CURSORICON_FindBestCursorRes( dir, width, height, colors ); if( entry ) retVal = entry->wResId; }
1
0
0
0
Vitaliy Margolen : ntdll: Stub NtMakeTemporaryObject.
by Alexandre Julliard
01 Dec '08
01 Dec '08
Module: wine Branch: master Commit: de94cfd7e14960e5fb91eaae73dd4d10ecb5c6a6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=de94cfd7e14960e5fb91eaae7…
Author: Vitaliy Margolen <wine-patches(a)kievinfo.com> Date: Sun Nov 30 15:01:02 2008 -0700 ntdll: Stub NtMakeTemporaryObject. --- dlls/ntdll/ntdll.spec | 4 ++-- dlls/ntdll/om.c | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec index 52db956..006b1fe 100644 --- a/dlls/ntdll/ntdll.spec +++ b/dlls/ntdll/ntdll.spec @@ -195,7 +195,7 @@ # @ stub NtLockRegistryKey @ stdcall NtLockVirtualMemory(long ptr ptr long) # @ stub NtMakePermanentObject -@ stub NtMakeTemporaryObject +@ stdcall NtMakeTemporaryObject(long) # @ stub NtMapUserPhysicalPages # @ stub NtMapUserPhysicalPagesScatter @ stdcall NtMapViewOfSection(long long ptr long long ptr ptr long long long) @@ -1039,7 +1039,7 @@ # @ stub ZwLockRegistryKey @ stdcall ZwLockVirtualMemory(long ptr ptr long) NtLockVirtualMemory # @ stub ZwMakePermanentObject -@ stub ZwMakeTemporaryObject +@ stdcall ZwMakeTemporaryObject(long) NtMakeTemporaryObject # @ stub ZwMapUserPhysicalPages # @ stub ZwMapUserPhysicalPagesScatter @ stdcall ZwMapViewOfSection(long long ptr long long ptr ptr long long long) NtMapViewOfSection diff --git a/dlls/ntdll/om.c b/dlls/ntdll/om.c index aba2301..a299a45 100644 --- a/dlls/ntdll/om.c +++ b/dlls/ntdll/om.c @@ -616,3 +616,22 @@ NTSTATUS WINAPI NtAllocateUuids( FIXME("(%p,%p,%p), stub.\n", Time, Range, Sequence); return 0; } + +/************************************************************************** + * NtMakeTemporaryObject [NTDLL.@] + * ZwMakeTemporaryObject [NTDLL.@] + * + * Make a permanent object temporary. + * + * PARAMS + * Handle [I] handle to permanent object + * + * RETURNS + * Success: STATUS_SUCCESS. + * Failure: An NTSTATUS error code. + */ +NTSTATUS WINAPI NtMakeTemporaryObject( HANDLE Handle ) +{ + FIXME("(%p), stub.\n", Handle); + return STATUS_SUCCESS; +}
1
0
0
0
← Newer
1
...
114
115
116
117
118
119
120
...
123
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
113
114
115
116
117
118
119
120
121
122
123
Results per page:
10
25
50
100
200