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
February 2010
----- 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
783 discussions
Start a n
N
ew thread
Nikolay Sivov : msxml3: Simplify IXMLDOMElement_get_tagName(), add null check.
by Alexandre Julliard
22 Feb '10
22 Feb '10
Module: wine Branch: master Commit: d013991d55956dc9d624ccc63b44129bb7d7714e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d013991d55956dc9d624ccc63…
Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Fri Feb 19 18:06:17 2010 +0300 msxml3: Simplify IXMLDOMElement_get_tagName(), add null check. --- dlls/msxml3/element.c | 28 ++++++++++------------------ dlls/msxml3/tests/domdoc.c | 3 +++ 2 files changed, 13 insertions(+), 18 deletions(-) diff --git a/dlls/msxml3/element.c b/dlls/msxml3/element.c index 0154770..b6caf73 100644 --- a/dlls/msxml3/element.c +++ b/dlls/msxml3/element.c @@ -489,32 +489,24 @@ static HRESULT WINAPI domelem_get_tagName( { domelem *This = impl_from_IXMLDOMElement( iface ); xmlNodePtr element; - DWORD len; - DWORD offset = 0; - LPWSTR str; + const xmlChar *prefix; + xmlChar *qname; TRACE("(%p)->(%p)\n", This, p ); + if (!p) return E_INVALIDARG; + element = get_element( This ); if ( !element ) return E_FAIL; - len = MultiByteToWideChar( CP_UTF8, 0, (LPCSTR) element->name, -1, NULL, 0 ); - if (element->ns) - len += MultiByteToWideChar( CP_UTF8, 0, (LPCSTR) element->ns->prefix, -1, NULL, 0 ); - str = heap_alloc( len * sizeof (WCHAR) ); - if ( !str ) - return E_OUTOFMEMORY; - if (element->ns) - { - offset = MultiByteToWideChar( CP_UTF8, 0, (LPCSTR) element->ns->prefix, -1, str, len ); - str[offset - 1] = ':'; - } - MultiByteToWideChar( CP_UTF8, 0, (LPCSTR) element->name, -1, str + offset, len - offset ); - *p = SysAllocString( str ); - heap_free( str ); + prefix = element->ns ? element->ns->prefix : NULL; + qname = xmlBuildQName(element->name, prefix, NULL, 0); - return S_OK; + *p = bstr_from_xmlChar(qname); + if (qname != element->name) xmlFree(qname); + + return *p ? S_OK : E_OUTOFMEMORY; } static HRESULT WINAPI domelem_getAttribute( diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c index e2de5df..929a35f 100644 --- a/dlls/msxml3/tests/domdoc.c +++ b/dlls/msxml3/tests/domdoc.c @@ -639,6 +639,9 @@ static void test_domdoc( void ) r = IXMLDOMElement_QueryInterface( element, &IID_IObjectIdentity, (LPVOID*)&ident ); ok( r == E_NOINTERFACE, "ret %08x\n", r); + r = IXMLDOMElement_get_tagName( element, NULL ); + ok( r == E_INVALIDARG, "ret %08x\n", r); + /* check if the tag is correct */ r = IXMLDOMElement_get_tagName( element, &tag ); ok( r == S_OK, "couldn't get tag name\n");
1
0
0
0
Alexandre Julliard : makefiles: Use the standard C_SRCS variable as the list of test files.
by Alexandre Julliard
22 Feb '10
22 Feb '10
Module: wine Branch: master Commit: 6164ce2d820546ae5b26eb504bc108091c5679ea URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6164ce2d820546ae5b26eb504…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sat Feb 20 19:56:55 2010 +0100 makefiles: Use the standard C_SRCS variable as the list of test files. This enables it to be auto-updated by make_makefiles. --- Maketest.rules.in | 7 +++---- dlls/advapi32/tests/Makefile.in | 2 +- dlls/advpack/tests/Makefile.in | 2 +- dlls/amstream/tests/Makefile.in | 2 +- dlls/avifil32/tests/Makefile.in | 2 +- dlls/browseui/tests/Makefile.in | 2 +- dlls/cabinet/tests/Makefile.in | 2 +- dlls/comcat/tests/Makefile.in | 2 +- dlls/comctl32/tests/Makefile.in | 2 +- dlls/comdlg32/tests/Makefile.in | 2 +- dlls/credui/tests/Makefile.in | 2 +- dlls/crypt32/tests/Makefile.in | 2 +- dlls/cryptnet/tests/Makefile.in | 2 +- dlls/cryptui/tests/Makefile.in | 2 +- dlls/d3d10/tests/Makefile.in | 2 +- dlls/d3d10core/tests/Makefile.in | 4 ++-- dlls/d3d8/tests/Makefile.in | 4 ++-- dlls/d3d9/tests/Makefile.in | 4 ++-- dlls/d3drm/tests/Makefile.in | 2 +- dlls/d3dx9_36/tests/Makefile.in | 2 +- dlls/d3dxof/tests/Makefile.in | 2 +- dlls/ddraw/tests/Makefile.in | 2 +- dlls/ddrawex/tests/Makefile.in | 2 +- dlls/dinput/tests/Makefile.in | 2 +- dlls/dmloader/tests/Makefile.in | 2 +- dlls/dnsapi/tests/Makefile.in | 2 +- dlls/dplayx/tests/Makefile.in | 2 +- dlls/dsound/tests/Makefile.in | 2 +- dlls/dxdiagn/tests/Makefile.in | 2 +- dlls/dxgi/tests/Makefile.in | 4 ++-- dlls/fusion/tests/Makefile.in | 2 +- dlls/gdi32/tests/Makefile.in | 2 +- dlls/gdiplus/tests/Makefile.in | 2 +- dlls/hlink/tests/Makefile.in | 2 +- dlls/imagehlp/tests/Makefile.in | 2 +- dlls/imm32/tests/Makefile.in | 2 +- dlls/inetcomm/tests/Makefile.in | 2 +- dlls/inetmib1/tests/Makefile.in | 2 +- dlls/infosoft/tests/Makefile.in | 2 +- dlls/iphlpapi/tests/Makefile.in | 2 +- dlls/itss/tests/Makefile.in | 2 +- dlls/jscript/tests/Makefile.in | 2 +- dlls/kernel32/tests/Makefile.in | 4 ++-- dlls/localspl/tests/Makefile.in | 2 +- dlls/localui/tests/Makefile.in | 2 +- dlls/lz32/tests/Makefile.in | 2 +- dlls/mapi32/tests/Makefile.in | 2 +- dlls/mlang/tests/Makefile.in | 2 +- dlls/mmdevapi/tests/Makefile.in | 2 +- dlls/msacm32/tests/Makefile.in | 2 +- dlls/mscms/tests/Makefile.in | 2 +- dlls/msctf/tests/Makefile.in | 2 +- dlls/mshtml/tests/Makefile.in | 2 +- dlls/msi/tests/Makefile.in | 2 +- dlls/mstask/tests/Makefile.in | 2 +- dlls/msvcrt/tests/Makefile.in | 2 +- dlls/msvcrtd/tests/Makefile.in | 2 +- dlls/msvfw32/tests/Makefile.in | 2 +- dlls/msxml3/tests/Makefile.in | 2 +- dlls/netapi32/tests/Makefile.in | 2 +- dlls/ntdll/tests/Makefile.in | 4 ++-- dlls/ntdsapi/tests/Makefile.in | 2 +- dlls/ntprint/tests/Makefile.in | 2 +- dlls/odbccp32/tests/Makefile.in | 2 +- dlls/ole32/tests/Makefile.in | 2 +- dlls/oleacc/tests/Makefile.in | 2 +- dlls/oleaut32/tests/Makefile.in | 2 +- dlls/oledb32/tests/Makefile.in | 2 +- dlls/opengl32/tests/Makefile.in | 2 +- dlls/pdh/tests/Makefile.in | 2 +- dlls/psapi/tests/Makefile.in | 2 +- dlls/qedit/tests/Makefile.in | 2 +- dlls/qmgr/tests/Makefile.in | 2 +- dlls/quartz/tests/Makefile.in | 2 +- dlls/rasapi32/tests/Makefile.in | 2 +- dlls/riched20/tests/Makefile.in | 2 +- dlls/riched32/tests/Makefile.in | 2 +- dlls/rpcrt4/tests/Makefile.in | 2 +- dlls/rsaenh/tests/Makefile.in | 2 +- dlls/schannel/tests/Makefile.in | 2 +- dlls/secur32/tests/Makefile.in | 2 +- dlls/serialui/tests/Makefile.in | 2 +- dlls/setupapi/tests/Makefile.in | 2 +- dlls/shdocvw/tests/Makefile.in | 2 +- dlls/shell32/tests/Makefile.in | 2 +- dlls/shlwapi/tests/Makefile.in | 2 +- dlls/snmpapi/tests/Makefile.in | 2 +- dlls/spoolss/tests/Makefile.in | 2 +- dlls/sti/tests/Makefile.in | 2 +- dlls/twain_32/tests/Makefile.in | 2 +- dlls/urlmon/tests/Makefile.in | 2 +- dlls/user32/tests/Makefile.in | 2 +- dlls/userenv/tests/Makefile.in | 2 +- dlls/usp10/tests/Makefile.in | 2 +- dlls/uxtheme/tests/Makefile.in | 2 +- dlls/version/tests/Makefile.in | 2 +- dlls/windowscodecs/tests/Makefile.in | 10 +++++----- dlls/winhttp/tests/Makefile.in | 2 +- dlls/wininet/tests/Makefile.in | 2 +- dlls/winmm/tests/Makefile.in | 2 +- dlls/winspool.drv/tests/Makefile.in | 2 +- dlls/wintab32/tests/Makefile.in | 2 +- dlls/wintrust/tests/Makefile.in | 2 +- dlls/wldap32/tests/Makefile.in | 2 +- dlls/ws2_32/tests/Makefile.in | 2 +- dlls/xinput1_3/tests/Makefile.in | 2 +- dlls/xmllite/tests/Makefile.in | 2 +- programs/cmd/tests/Makefile.in | 3 ++- 108 files changed, 121 insertions(+), 121 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=6164ce2d820546ae5b26e…
1
0
0
0
Alexandre Julliard : makefiles: Make sure that dependencies are always updated when regenerating makefiles .
by Alexandre Julliard
22 Feb '10
22 Feb '10
Module: wine Branch: master Commit: d59227e5803c24c644d87d6f7b6c6a7eda2f2a32 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d59227e5803c24c644d87d6f7…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sat Feb 20 12:36:04 2010 +0100 makefiles: Make sure that dependencies are always updated when regenerating makefiles. --- Makefile.in | 9 +- aclocal.m4 | 6 +- configure | 2691 +++++++++++++++++++++++++++++++++++------------------------ 3 files changed, 1622 insertions(+), 1084 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=d59227e5803c24c644d87…
1
0
0
0
Alexandre Julliard : configure: Define AS_VAR_APPEND if necessary for older autoconf versions.
by Alexandre Julliard
22 Feb '10
22 Feb '10
Module: wine Branch: master Commit: bc82a78635e924c8cd49bf5eff39b2e143036dc0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=bc82a78635e924c8cd49bf5ef…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sat Feb 20 10:59:04 2010 +0100 configure: Define AS_VAR_APPEND if necessary for older autoconf versions. --- configure.ac | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure.ac index ba54bcd..d5649f3 100644 --- a/configure.ac +++ b/configure.ac @@ -11,6 +11,10 @@ AC_CONFIG_SRCDIR(server/atom.c) AC_CONFIG_HEADERS(include/config.h) AC_CONFIG_AUX_DIR(tools) +dnl autoconf versions before 2.63b don't have AS_VAR_APPEND +m4_ifdef([AS_VAR_APPEND],,[as_fn_append () { eval $[1]=\$$[1]\$[2]; } +AC_DEFUN([AS_VAR_APPEND],[as_fn_append $1 $2])])dnl + dnl **** Command-line arguments **** AC_ARG_ENABLE(win16, AS_HELP_STRING([--disable-win16],[do not include Win16 support]))
1
0
0
0
Alexandre Julliard : Wine release 1.1.39
by Alexandre Julliard
19 Feb '10
19 Feb '10
Module: website Branch: master Commit: 68c2332e284312b08e088dc64a53cc62c24fdf89 URL:
http://source.winehq.org/git/website.git/?a=commit;h=68c2332e284312b08e088d…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Feb 19 19:32:25 2010 +0100 Wine release 1.1.39 --- news/en/2010021901.xml | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/news/en/2010021901.xml b/news/en/2010021901.xml new file mode 100644 index 0000000..168c7c2 --- /dev/null +++ b/news/en/2010021901.xml @@ -0,0 +1,17 @@ +<news> +<date>February 19, 2010</date> +<title>Wine 1.1.39 Released</title> +<body> +<p> The Wine development release 1.1.39 is now available.</p> +<p> <a href="{$root}/announce/1.1.39">What's new</a> in this release: +<ul> + <li>Support for registry symbolic links.</li> + <li>Many MSI fixes.</li> + <li>Build process improvements.</li> + <li>MSXML cleanups and fixes.</li> + <li>A number of MSHTML improvements.</li> + <li>Various bug fixes.</li> +</ul></p> +<p><p>The source is <a href="
http://prdownloads.sourceforge.net/wine/wine-1.1.39.tar.bz2
">available now</a>. +Binary packages are in the process of being built, and will appear soon at their respective <a href="{$root}/download">download locations</a>. +</p></body></news>
1
0
0
0
Tag wine-1.1.39 : Alexandre Julliard : Release 1.1.39
by Alexandre Julliard
19 Feb '10
19 Feb '10
Module: wine Branch: refs/tags/wine-1.1.39 Tag: 069f515ca6dbd597ee44ddd2e2f59f95f958ed13 URL:
http://source.winehq.org/git/wine.git/?a=tag;h=069f515ca6dbd597ee44ddd2e2f5…
Tagger: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Feb 19 19:23:46 2010 +0100 Release 1.1.39
1
0
0
0
Alexandre Julliard : Release 1.1.39.
by Alexandre Julliard
19 Feb '10
19 Feb '10
Module: wine Branch: master Commit: e1437c5231b0ed2647ace43abef1ac97386ce1af URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e1437c5231b0ed2647ace43ab…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Feb 19 19:23:45 2010 +0100 Release 1.1.39. --- ANNOUNCE | 1116 +++++++++++++++++++++++++------------------------------------ VERSION | 2 +- configure | 18 +- 3 files changed, 459 insertions(+), 677 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=e1437c5231b0ed2647ace…
1
0
0
0
Jörg Höhle : winmm: dwBytesRecorded controls how much is played, not dwBufferLength.
by Alexandre Julliard
19 Feb '10
19 Feb '10
Module: wine Branch: master Commit: a956086e1892f7ac44e1f42975dfd1f9cbc9b253 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a956086e1892f7ac44e1f4297…
Author: Jörg Höhle <hoehle(a)users.sourceforge.net> Date: Tue Feb 16 09:08:46 2010 +0100 winmm: dwBytesRecorded controls how much is played, not dwBufferLength. --- dlls/winmm/winmm.c | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/dlls/winmm/winmm.c b/dlls/winmm/winmm.c index d201d12..46a3c06 100644 --- a/dlls/winmm/winmm.c +++ b/dlls/winmm/winmm.c @@ -1530,9 +1530,9 @@ static BOOL MMSYSTEM_MidiStream_MessageHandler(WINE_MIDIStream* lpMidiStrm, LPWI */ lpMidiHdr = (LPMIDIHDR)msg->lParam; lpData = (LPBYTE)lpMidiHdr->lpData; - TRACE("Adding %s lpMidiHdr=%p [lpData=0x%p dwBufferLength=%u/%u dwFlags=0x%08x size=%lu]\n", + TRACE("Adding %s lpMidiHdr=%p [lpData=0x%p dwBytesRecorded=%u/%u dwFlags=0x%08x size=%lu]\n", (lpMidiHdr->dwFlags & MHDR_ISSTRM) ? "stream" : "regular", lpMidiHdr, - lpMidiHdr, lpMidiHdr->dwBufferLength, lpMidiHdr->dwBytesRecorded, + lpMidiHdr, lpMidiHdr->dwBytesRecorded, lpMidiHdr->dwBufferLength, lpMidiHdr->dwFlags, msg->wParam); #if 0 /* dumps content of lpMidiHdr->lpData @@ -1686,7 +1686,7 @@ static DWORD CALLBACK MMSYSTEM_MidiStream_Player(LPVOID pmt) lpMidiHdr->dwOffset += sizeof(MIDIEVENT) - sizeof(me->dwParms); if (me->dwEvent & MEVT_F_LONG) lpMidiHdr->dwOffset += (MEVT_EVENTPARM(me->dwEvent) + 3) & ~3; - if (lpMidiHdr->dwOffset >= lpMidiHdr->dwBufferLength) { + if (lpMidiHdr->dwOffset >= lpMidiHdr->dwBytesRecorded) { /* done with this header */ lpMidiHdr->dwFlags |= MHDR_DONE; lpMidiHdr->dwFlags &= ~MHDR_INQUEUE; @@ -1817,8 +1817,11 @@ MMRESULT WINAPI midiStreamOut(HMIDISTRM hMidiStrm, LPMIDIHDR lpMidiHdr, TRACE("(%p, %p, %u)!\n", hMidiStrm, lpMidiHdr, cbMidiHdr); - if (cbMidiHdr < sizeof(MIDIHDR) || !lpMidiHdr || !lpMidiHdr->lpData) + if (cbMidiHdr < sizeof(MIDIHDR) || !lpMidiHdr || !lpMidiHdr->lpData + || lpMidiHdr->dwBufferLength < lpMidiHdr->dwBytesRecorded) return MMSYSERR_INVALPARAM; + /* FIXME: Native additionaly checks if the MIDIEVENTs in lpData + * exactly fit dwBytesRecorded. */ if (!(lpMidiHdr->dwFlags & MHDR_PREPARED)) return MIDIERR_UNPREPARED;
1
0
0
0
Nikolay Sivov : msxml3: Avoid direct vtable members internal usage.
by Alexandre Julliard
19 Feb '10
19 Feb '10
Module: wine Branch: master Commit: 7a38ecb0d6eee6752d1e638bfe1ccf95ee1f7d25 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7a38ecb0d6eee6752d1e638bf…
Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Fri Feb 19 14:45:48 2010 +0300 msxml3: Avoid direct vtable members internal usage. --- dlls/msxml3/node.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c index b981bcc..ac97681 100644 --- a/dlls/msxml3/node.c +++ b/dlls/msxml3/node.c @@ -947,8 +947,6 @@ static HRESULT WINAPI xmlnode_get_definition( return E_NOTIMPL; } -static HRESULT WINAPI xmlnode_get_dataType(IXMLDOMNode*, VARIANT*); - static inline BYTE hex_to_byte(xmlChar c) { if(c <= '9') return c-'0'; @@ -1149,10 +1147,10 @@ static HRESULT WINAPI xmlnode_get_nodeTypedValue( if(This->node->type == XML_ELEMENT_NODE || This->node->type == XML_TEXT_NODE || This->node->type == XML_ENTITY_REF_NODE) - hres = xmlnode_get_dataType(iface, &type); + hres = IXMLDOMNode_get_dataType(iface, &type); if(hres != S_OK && This->node->type != XML_ELEMENT_NODE) - return xmlnode_get_nodeValue(iface, typedValue); + return IXMLDOMNode_get_nodeValue(iface, typedValue); content = xmlNodeGetContent(This->node); hres = VARIANT_from_xmlChar(content, typedValue,
1
0
0
0
Nikolay Sivov : msxml3: Accept IObjectSafety for query from IXMLDOMDocument , fix its implementation.
by Alexandre Julliard
19 Feb '10
19 Feb '10
Module: wine Branch: master Commit: b679a690b4c0841eb98983e977a0b629c0b2e10f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b679a690b4c0841eb98983e97…
Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Fri Feb 19 13:46:16 2010 +0300 msxml3: Accept IObjectSafety for query from IXMLDOMDocument, fix its implementation. --- dlls/msxml3/domdoc.c | 14 ++++---- dlls/msxml3/tests/domdoc.c | 69 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+), 7 deletions(-) diff --git a/dlls/msxml3/domdoc.c b/dlls/msxml3/domdoc.c index e3e9651..41c1f41 100644 --- a/dlls/msxml3/domdoc.c +++ b/dlls/msxml3/domdoc.c @@ -471,6 +471,10 @@ static HRESULT WINAPI domdoc_QueryInterface( IXMLDOMDocument2 *iface, REFIID rii { *ppvObject = &(This->lpvtblIObjectWithSite); } + else if (IsEqualGUID(&IID_IObjectSafety, riid)) + { + *ppvObject = &(This->lpvtblIObjectSafety); + } else if( IsEqualGUID( riid, &IID_ISupportErrorInfo )) { *ppvObject = &This->lpvtblISupportErrorInfo; @@ -2210,7 +2214,7 @@ static ULONG WINAPI xmldoc_Safety_Release(IObjectSafety *iface) return IXMLDocument_Release((IXMLDocument *)This); } -#define SUPPORTED_OPTIONS (INTERFACESAFE_FOR_UNTRUSTED_CALLER|INTERFACESAFE_FOR_UNTRUSTED_DATA|INTERFACE_USES_SECURITY_MANAGER) +#define SAFETY_SUPPORTED_OPTIONS (INTERFACESAFE_FOR_UNTRUSTED_CALLER|INTERFACESAFE_FOR_UNTRUSTED_DATA) static HRESULT WINAPI xmldoc_Safety_GetInterfaceSafetyOptions(IObjectSafety *iface, REFIID riid, DWORD *pdwSupportedOptions, DWORD *pdwEnabledOptions) @@ -2222,7 +2226,7 @@ static HRESULT WINAPI xmldoc_Safety_GetInterfaceSafetyOptions(IObjectSafety *ifa if(!pdwSupportedOptions || !pdwEnabledOptions) return E_POINTER; - *pdwSupportedOptions = SUPPORTED_OPTIONS; + *pdwSupportedOptions = SAFETY_SUPPORTED_OPTIONS; *pdwEnabledOptions = This->safeopt; return S_OK; @@ -2232,13 +2236,9 @@ static HRESULT WINAPI xmldoc_Safety_SetInterfaceSafetyOptions(IObjectSafety *ifa DWORD dwOptionSetMask, DWORD dwEnabledOptions) { domdoc *This = impl_from_IObjectSafety(iface); - TRACE("(%p)->(%s %x %x)\n", This, debugstr_guid(riid), dwOptionSetMask, dwEnabledOptions); - if(dwOptionSetMask & ~SUPPORTED_OPTIONS) - return E_FAIL; - - This->safeopt = dwEnabledOptions & dwEnabledOptions; + This->safeopt = dwEnabledOptions & dwOptionSetMask & SAFETY_SUPPORTED_OPTIONS; return S_OK; } diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c index e7c9008..e2de5df 100644 --- a/dlls/msxml3/tests/domdoc.c +++ b/dlls/msxml3/tests/domdoc.c @@ -24,6 +24,7 @@ #include "windows.h" #include "ole2.h" +#include "objsafe.h" #include "xmldom.h" #include "msxml2.h" #include "msxml2did.h" @@ -33,6 +34,10 @@ #include "wine/test.h" +#include "initguid.h" + +DEFINE_GUID(IID_IObjectSafety, 0xcb5bdc81, 0x93c1, 0x11cf, 0x8f,0x20, 0x00,0x80,0x5f,0x2c,0xd0,0x64); + static const WCHAR szEmpty[] = { 0 }; static const WCHAR szIncomplete[] = { '<','?','x','m','l',' ', @@ -5284,6 +5289,69 @@ static void test_put_nodeValue(void) IXMLDOMDocument_Release(doc); } +static void test_document_IObjectSafety(void) +{ + IXMLDOMDocument *doc; + IObjectSafety *safety; + DWORD enabled = 0, supported = 0; + HRESULT hr; + + hr = CoCreateInstance( &CLSID_DOMDocument, NULL, CLSCTX_INPROC_SERVER, &IID_IXMLDOMDocument, (LPVOID*)&doc ); + if( hr != S_OK ) + return; + + hr = IXMLDOMDocument_QueryInterface(doc, &IID_IObjectSafety, (void**)&safety); + ok(hr == S_OK, "ret %08x\n", hr ); + + /* get */ + hr = IObjectSafety_GetInterfaceSafetyOptions(safety, NULL, NULL, &enabled); + ok(hr == E_POINTER, "ret %08x\n", hr ); + hr = IObjectSafety_GetInterfaceSafetyOptions(safety, NULL, &supported, NULL); + ok(hr == E_POINTER, "ret %08x\n", hr ); + + hr = IObjectSafety_GetInterfaceSafetyOptions(safety, NULL, &supported, &enabled); + ok(hr == S_OK, "ret %08x\n", hr ); + ok(supported == (INTERFACESAFE_FOR_UNTRUSTED_CALLER | INTERFACESAFE_FOR_UNTRUSTED_DATA), + "Expected (INTERFACESAFE_FOR_UNTRUSTED_CALLER | INTERFACESAFE_FOR_UNTRUSTED_DATA)," + "got %08x\n", supported); + ok(enabled == 0, "Expected 0, got %08x\n", enabled); + /* set */ + hr = IObjectSafety_SetInterfaceSafetyOptions(safety, NULL, + INTERFACESAFE_FOR_UNTRUSTED_CALLER, + INTERFACESAFE_FOR_UNTRUSTED_CALLER); + ok(hr == S_OK, "ret %08x\n", hr ); + hr = IObjectSafety_GetInterfaceSafetyOptions(safety, NULL, &supported, &enabled); + ok(hr == S_OK, "ret %08x\n", hr ); + ok(enabled == INTERFACESAFE_FOR_UNTRUSTED_CALLER, + "Expected INTERFACESAFE_FOR_UNTRUSTED_CALLER, got %08x\n", enabled); + /* set unsupported */ + hr = IObjectSafety_SetInterfaceSafetyOptions(safety, NULL, + INTERFACE_USES_SECURITY_MANAGER | + INTERFACESAFE_FOR_UNTRUSTED_CALLER, + INTERFACE_USES_SECURITY_MANAGER); + ok(hr == S_OK, "ret %08x\n", hr ); + hr = IObjectSafety_GetInterfaceSafetyOptions(safety, NULL, &supported, &enabled); + ok(hr == S_OK, "ret %08x\n", hr ); + ok(enabled == 0, "Expected 0, got %08x\n", enabled); + + hr = IObjectSafety_SetInterfaceSafetyOptions(safety, NULL, + INTERFACESAFE_FOR_UNTRUSTED_CALLER, + INTERFACESAFE_FOR_UNTRUSTED_CALLER); + ok(hr == S_OK, "ret %08x\n", hr ); + hr = IObjectSafety_SetInterfaceSafetyOptions(safety, NULL, + INTERFACESAFE_FOR_UNTRUSTED_DATA, + INTERFACESAFE_FOR_UNTRUSTED_DATA); + ok(hr == S_OK, "ret %08x\n", hr ); + hr = IObjectSafety_GetInterfaceSafetyOptions(safety, NULL, &supported, &enabled); + ok(hr == S_OK, "ret %08x\n", hr ); + ok(enabled == INTERFACESAFE_FOR_UNTRUSTED_DATA, + "Expected INTERFACESAFE_FOR_UNTRUSTED_DATA, got %08x\n", enabled); + + IObjectSafety_Release(safety); + + IXMLDOMDocument_Release(doc); +} + START_TEST(domdoc) { HRESULT r; @@ -5315,6 +5383,7 @@ START_TEST(domdoc) test_NodeTypeValue(); test_TransformWithLoadingLocalFile(); test_put_nodeValue(); + test_document_IObjectSafety(); CoUninitialize(); }
1
0
0
0
← Newer
1
...
14
15
16
17
18
19
20
...
79
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
Results per page:
10
25
50
100
200