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 2013
----- 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
447 discussions
Start a n
N
ew thread
Nikolay Sivov : msxml3: Implement setting attributes properties with IMXAttributes.
by Alexandre Julliard
30 Jul '13
30 Jul '13
Module: wine Branch: master Commit: ccf04d644ba27accd3463075041b0f83f7cd704c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ccf04d644ba27accd34630750…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Tue Jul 30 15:08:03 2013 +0400 msxml3: Implement setting attributes properties with IMXAttributes. --- dlls/msxml3/mxwriter.c | 63 +++++++++++++++++++++++++++++++++++++---------- 1 files changed, 49 insertions(+), 14 deletions(-) diff --git a/dlls/msxml3/mxwriter.c b/dlls/msxml3/mxwriter.c index 03c1b67..dd4e629 100644 --- a/dlls/msxml3/mxwriter.c +++ b/dlls/msxml3/mxwriter.c @@ -1888,14 +1888,20 @@ static HRESULT WINAPI MXAttributes_clear(IMXAttributes *iface) return S_OK; } +static mxattribute *get_attribute_byindex(mxattributes *attrs, int index) +{ + if (index < 0 || index >= attrs->length) return NULL; + return &attrs->attr[index]; +} + static HRESULT WINAPI MXAttributes_removeAttribute(IMXAttributes *iface, int index) { mxattributes *This = impl_from_IMXAttributes( iface ); - mxattribute *src, *dst; + mxattribute *dst; TRACE("(%p)->(%d)\n", This, index); - if (index < 0 || index >= This->length) return E_INVALIDARG; + if (!(dst = get_attribute_byindex(This, index))) return E_INVALIDARG; /* no need to remove last attribute, just make it inaccessible */ if (index + 1 == This->length) @@ -1904,10 +1910,7 @@ static HRESULT WINAPI MXAttributes_removeAttribute(IMXAttributes *iface, int ind return S_OK; } - dst = &This->attr[index]; - src = &This->attr[index+1]; - - memmove(dst, src, (This->length-index-1)*sizeof(*dst)); + memmove(dst, dst + 1, (This->length-index-1)*sizeof(*dst)); This->length--; return S_OK; @@ -1933,29 +1936,61 @@ static HRESULT WINAPI MXAttributes_setLocalName(IMXAttributes *iface, int index, BSTR localName) { mxattributes *This = impl_from_IMXAttributes( iface ); - FIXME("(%p)->(%d %s): stub\n", This, index, debugstr_w(localName)); - return E_NOTIMPL; + mxattribute *attr; + + TRACE("(%p)->(%d %s)\n", This, index, debugstr_w(localName)); + + if (!(attr = get_attribute_byindex(This, index))) return E_INVALIDARG; + + SysFreeString(attr->local); + attr->local = SysAllocString(localName); + + return S_OK; } static HRESULT WINAPI MXAttributes_setQName(IMXAttributes *iface, int index, BSTR QName) { mxattributes *This = impl_from_IMXAttributes( iface ); - FIXME("(%p)->(%d %s): stub\n", This, index, debugstr_w(QName)); - return E_NOTIMPL; + mxattribute *attr; + + TRACE("(%p)->(%d %s)\n", This, index, debugstr_w(QName)); + + if (!(attr = get_attribute_byindex(This, index))) return E_INVALIDARG; + + SysFreeString(attr->qname); + attr->qname = SysAllocString(QName); + + return S_OK; } static HRESULT WINAPI MXAttributes_setURI(IMXAttributes *iface, int index, BSTR uri) { mxattributes *This = impl_from_IMXAttributes( iface ); - FIXME("(%p)->(%d %s): stub\n", This, index, debugstr_w(uri)); - return E_NOTIMPL; + mxattribute *attr; + + TRACE("(%p)->(%d %s)\n", This, index, debugstr_w(uri)); + + if (!(attr = get_attribute_byindex(This, index))) return E_INVALIDARG; + + SysFreeString(attr->uri); + attr->uri = SysAllocString(uri); + + return S_OK; } static HRESULT WINAPI MXAttributes_setValue(IMXAttributes *iface, int index, BSTR value) { mxattributes *This = impl_from_IMXAttributes( iface ); - FIXME("(%p)->(%d %s): stub\n", This, index, debugstr_w(value)); - return E_NOTIMPL; + mxattribute *attr; + + TRACE("(%p)->(%d %s)\n", This, index, debugstr_w(value)); + + if (!(attr = get_attribute_byindex(This, index))) return E_INVALIDARG; + + SysFreeString(attr->value); + attr->value = SysAllocString(value); + + return S_OK; } static const IMXAttributesVtbl MXAttributesVtbl = {
1
0
0
0
Nikolay Sivov : msxml3: Implement IMXAttributes_removeAttribute().
by Alexandre Julliard
30 Jul '13
30 Jul '13
Module: wine Branch: master Commit: 11736f36c9d498949c724ad525707d0b530bcd33 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=11736f36c9d498949c724ad52…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Tue Jul 30 15:03:22 2013 +0400 msxml3: Implement IMXAttributes_removeAttribute(). --- dlls/msxml3/mxwriter.c | 22 ++++++++++++++++++++-- 1 files changed, 20 insertions(+), 2 deletions(-) diff --git a/dlls/msxml3/mxwriter.c b/dlls/msxml3/mxwriter.c index 3196374..03c1b67 100644 --- a/dlls/msxml3/mxwriter.c +++ b/dlls/msxml3/mxwriter.c @@ -1891,8 +1891,26 @@ static HRESULT WINAPI MXAttributes_clear(IMXAttributes *iface) static HRESULT WINAPI MXAttributes_removeAttribute(IMXAttributes *iface, int index) { mxattributes *This = impl_from_IMXAttributes( iface ); - FIXME("(%p)->(%d): stub\n", This, index); - return E_NOTIMPL; + mxattribute *src, *dst; + + TRACE("(%p)->(%d)\n", This, index); + + if (index < 0 || index >= This->length) return E_INVALIDARG; + + /* no need to remove last attribute, just make it inaccessible */ + if (index + 1 == This->length) + { + This->length--; + return S_OK; + } + + dst = &This->attr[index]; + src = &This->attr[index+1]; + + memmove(dst, src, (This->length-index-1)*sizeof(*dst)); + This->length--; + + return S_OK; } static HRESULT WINAPI MXAttributes_setAttribute(IMXAttributes *iface, int index,
1
0
0
0
Nikolay Sivov : include: Added IRowPosition interface definition.
by Alexandre Julliard
30 Jul '13
30 Jul '13
Module: wine Branch: master Commit: 2fe34bfb094b93d825ebe6d1342e28804262398a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2fe34bfb094b93d825ebe6d13…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Tue Jul 30 14:38:38 2013 +0400 include: Added IRowPosition interface definition. --- dlls/msdaps/usrmarshal.c | 60 +++++++++++++++++++++++++++++++++++ include/Makefile.in | 1 + include/oledb.idl | 1 + include/rowpos.idl | 77 ++++++++++++++++++++++++++++++++++++++++++++++ tools/make_makefiles | 1 + 5 files changed, 140 insertions(+), 0 deletions(-) diff --git a/dlls/msdaps/usrmarshal.c b/dlls/msdaps/usrmarshal.c index b93340e..54c9b90 100644 --- a/dlls/msdaps/usrmarshal.c +++ b/dlls/msdaps/usrmarshal.c @@ -1279,3 +1279,63 @@ HRESULT __RPC_STUB IErrorRecords_AddErrorRecord_Stub(IErrorRecords* This, ERRORI return hr; } + +HRESULT __RPC_STUB IRowPosition_Initialize_Stub(IRowPosition* This, IUnknown *rowset, IErrorInfo **errorinfo) +{ + FIXME("(%p)->(%p %p): stub\n", This, rowset, errorinfo); + return E_NOTIMPL; +} + +HRESULT __RPC_STUB IRowPosition_SetRowPosition_Stub(IRowPosition* This, HCHAPTER chapter, HROW row, DBPOSITIONFLAGS flags, IErrorInfo **errorinfo) +{ + FIXME("(%p)->(%lx %lx %d %p): stub\n", This, chapter, row, flags, errorinfo); + return E_NOTIMPL; +} + +HRESULT __RPC_STUB IRowPosition_GetRowset_Stub(IRowPosition* This, REFIID riid, IUnknown **rowset, IErrorInfo **errorinfo) +{ + FIXME("(%p)->(%s %p %p): stub\n", This, debugstr_guid(riid), rowset, errorinfo); + return E_NOTIMPL; +} + +HRESULT __RPC_STUB IRowPosition_GetRowPosition_Stub(IRowPosition* This, HCHAPTER *chapter, HROW *row, DBPOSITIONFLAGS *flags, IErrorInfo **errorinfo) +{ + FIXME("(%p)->(%p %p %p %p): stub\n", This, chapter, row, flags, errorinfo); + return E_NOTIMPL; +} + +HRESULT __RPC_STUB IRowPosition_ClearRowPosition_Stub(IRowPosition* This, IErrorInfo **errorinfo) +{ + FIXME("(%p)->(%p): stub\n", This, errorinfo); + return E_NOTIMPL; +} + +HRESULT CALLBACK IRowPosition_ClearRowPosition_Proxy(IRowPosition* This) +{ + FIXME("(%p): stub\n", This); + return E_NOTIMPL; +} + +HRESULT CALLBACK IRowPosition_GetRowPosition_Proxy(IRowPosition* This, HCHAPTER *chapter, HROW *row, DBPOSITIONFLAGS *flags) +{ + FIXME("(%p)->(%p %p %p): stub\n", This, chapter, row, flags); + return E_NOTIMPL; +} + +HRESULT CALLBACK IRowPosition_GetRowset_Proxy(IRowPosition* This, REFIID riid, IUnknown **rowset) +{ + FIXME("(%p)->(%s %p): stub\n", This, debugstr_guid(riid), rowset); + return E_NOTIMPL; +} + +HRESULT CALLBACK IRowPosition_Initialize_Proxy(IRowPosition* This, IUnknown *rowset) +{ + FIXME("(%p)->(%p): stub\n", This, rowset); + return E_NOTIMPL; +} + +HRESULT CALLBACK IRowPosition_SetRowPosition_Proxy(IRowPosition* This, HCHAPTER chapter, HROW row, DBPOSITIONFLAGS flags) +{ + FIXME("(%p)->(%lx %lx %d): stub\n", This, chapter, row, flags); + return E_NOTIMPL; +} diff --git a/include/Makefile.in b/include/Makefile.in index cecc845..0818999 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -480,6 +480,7 @@ SRCDIR_INCLUDES = \ rmxfguid.h \ row.idl \ rowchg.idl \ + rowpos.idl \ rpc.h \ rpcasync.h \ rpcdce.h \ diff --git a/include/oledb.idl b/include/oledb.idl index 5cd287f..3d47fe7 100644 --- a/include/oledb.idl +++ b/include/oledb.idl @@ -64,6 +64,7 @@ typedef DWORD_PTR DBHASHVALUE; #include "opnrst.idl" #include "row.idl" #include "rowchg.idl" +#include "rowpos.idl" #include "binres.idl" #include "crtrow.idl" #include "errrec.idl" diff --git a/include/rowpos.idl b/include/rowpos.idl new file mode 100644 index 0000000..1ef6807 --- /dev/null +++ b/include/rowpos.idl @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2013 Nikolay Sivov + * + * 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 + */ + +[ + object, + uuid(0c733a94-2a1c-11ce-ade5-00aa0044773d), + pointer_default(unique) +] +interface IRowPosition : IUnknown +{ + typedef DWORD DBPOSITIONFLAGS; + + enum DBPOSITIONFLAGSENUM { + DBPOSITION_OK, + DBPOSITION_NOROW, + DBPOSITION_BOF, + DBPOSITION_EOF + }; + + [local] + HRESULT ClearRowPosition(); + + [call_as(ClearRowPosition)] + HRESULT RemoteClearRowPosition([out] IErrorInfo **errorinfo); + + [local] + HRESULT GetRowPosition([out] HCHAPTER *chapter, + [out] HROW *row, + [out] DBPOSITIONFLAGS *position_flags); + + [call_as(GetRowPosition)] + HRESULT RemoteGetRowPosition([out] HCHAPTER *chapter, + [out] HROW *row, + [out] DBPOSITIONFLAGS *position_flags, + [out] IErrorInfo **errorinfo); + [local] + HRESULT GetRowset([in] REFIID riid, + [out, iid_is(riid)] IUnknown **rowset); + + [call_as(GetRowset)] + HRESULT RemoteGetRowset([in] REFIID riid, + [out, iid_is(riid)] IUnknown **rowset, + [out] IErrorInfo **errorinfo); + + [local] + HRESULT Initialize([in] IUnknown *rowset); + + [call_as(Initialize)] + HRESULT RemoteInitialize([in] IUnknown *rowset, + [out] IErrorInfo **errorinfo); + + [local] + HRESULT SetRowPosition([in] HCHAPTER chapter, + [in] HROW row, + [in] DBPOSITIONFLAGS flags); + + [call_as(SetRowPosition)] + HRESULT RemoteSetRowPosition([in] HCHAPTER chapter, + [in] HROW row, + [in] DBPOSITIONFLAGS flags, + [out] IErrorInfo **errorinfo); +} diff --git a/tools/make_makefiles b/tools/make_makefiles index 6d4e8a7..566ca0d 100755 --- a/tools/make_makefiles +++ b/tools/make_makefiles @@ -155,6 +155,7 @@ my %private_idl_headers = ( "opnrst.idl" => 1, "row.idl" => 1, "rowchg.idl" => 1, + "rowpos.idl" => 1, "rstbas.idl" => 1, "rstinf.idl" => 1, "rstloc.idl" => 1,
1
0
0
0
Alexandre Julliard : configure: Allow specifying relative paths in CFLAGS and LIBS variables.
by Alexandre Julliard
30 Jul '13
30 Jul '13
Module: wine Branch: master Commit: bd049b2839a6a5ab9586147b7e608c9f03bb2be8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=bd049b2839a6a5ab9586147b7…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 30 17:40:23 2013 +0200 configure: Allow specifying relative paths in CFLAGS and LIBS variables. --- aclocal.m4 | 2 ++ configure | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 0 deletions(-) diff --git a/aclocal.m4 b/aclocal.m4 index a12ac88..8aa81b2 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -88,6 +88,8 @@ ac_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $ac_cflags" $6 CPPFLAGS=$ac_save_CPPFLAGS +test -z "$ac_cflags" || ac_cflags=`echo " $ac_cflags" | sed 's/ -I\([[^/]]\)/ -I\$(top_builddir)\/\1/g'` +test -z "$ac_libs" || ac_libs=`echo " $ac_libs" | sed 's/ -L\([[^/]]\)/ -L\$(top_builddir)\/\1/g'` AS_VAR_POPDEF([ac_libs])dnl AS_VAR_POPDEF([ac_cflags])])dnl diff --git a/configure b/configure index 719db97..5b1e50f 100755 --- a/configure +++ b/configure @@ -9889,6 +9889,8 @@ fi XML2_LIBS="" fi CPPFLAGS=$ac_save_CPPFLAGS +test -z "$XML2_CFLAGS" || XML2_CFLAGS=`echo " $XML2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'` +test -z "$XML2_LIBS" || XML2_LIBS=`echo " $XML2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'` fi if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then : @@ -9992,6 +9994,8 @@ fi XSLT_CFLAGS="" fi CPPFLAGS=$ac_save_CPPFLAGS +test -z "$XSLT_CFLAGS" || XSLT_CFLAGS=`echo " $XSLT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'` +test -z "$XSLT_LIBS" || XSLT_LIBS=`echo " $XSLT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'` fi if test "x$ac_cv_lib_soname_xslt" = "x"; then : @@ -10081,6 +10085,8 @@ fi CPPFLAGS=$ac_save_CPPFLAGS +test -z "$DBUS_CFLAGS" || DBUS_CFLAGS=`echo " $DBUS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'` +test -z "$DBUS_LIBS" || DBUS_LIBS=`echo " $DBUS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'` fi if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \ @@ -10171,6 +10177,8 @@ fi CPPFLAGS=$ac_save_CPPFLAGS +test -z "$HAL_CFLAGS" || HAL_CFLAGS=`echo " $HAL_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'` +test -z "$HAL_LIBS" || HAL_LIBS=`echo " $HAL_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'` if test "x$ac_cv_lib_soname_hal" = "x" -a \ "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then : @@ -10276,6 +10284,8 @@ fi CPPFLAGS=$ac_save_CPPFLAGS +test -z "$GNUTLS_CFLAGS" || GNUTLS_CFLAGS=`echo " $GNUTLS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'` +test -z "$GNUTLS_LIBS" || GNUTLS_LIBS=`echo " $GNUTLS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'` fi if test "x$ac_cv_lib_soname_gnutls" = "x"; then : @@ -10500,6 +10510,8 @@ fi CPPFLAGS=$ac_save_CPPFLAGS +test -z "$SANE_CFLAGS" || SANE_CFLAGS=`echo " $SANE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'` +test -z "$SANE_LIBS" || SANE_LIBS=`echo " $SANE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'` fi if test "x$ac_cv_lib_soname_sane" = "x"; then : @@ -10645,6 +10657,8 @@ fi CPPFLAGS=$ac_save_CPPFLAGS +test -z "$GPHOTO2_CFLAGS" || GPHOTO2_CFLAGS=`echo " $GPHOTO2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'` +test -z "$GPHOTO2_LIBS" || GPHOTO2_LIBS=`echo " $GPHOTO2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'` if test -n "$GPHOTO2_PORT_CFLAGS"; then : @@ -10713,6 +10727,8 @@ fi CPPFLAGS=$ac_save_CPPFLAGS +test -z "$GPHOTO2_PORT_CFLAGS" || GPHOTO2_PORT_CFLAGS=`echo " $GPHOTO2_PORT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'` +test -z "$GPHOTO2_PORT_LIBS" || GPHOTO2_PORT_LIBS=`echo " $GPHOTO2_PORT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'` fi if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then : @@ -10849,6 +10865,8 @@ fi LCMS2_LIBS="" fi CPPFLAGS=$ac_save_CPPFLAGS +test -z "$LCMS2_CFLAGS" || LCMS2_CFLAGS=`echo " $LCMS2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'` +test -z "$LCMS2_LIBS" || LCMS2_LIBS=`echo " $LCMS2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'` fi if test "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" != "yes"; then : @@ -10995,6 +11013,8 @@ $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h FREETYPE_LIBS="" fi CPPFLAGS=$ac_save_CPPFLAGS +test -z "$FREETYPE_CFLAGS" || FREETYPE_CFLAGS=`echo " $FREETYPE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'` +test -z "$FREETYPE_LIBS" || FREETYPE_LIBS=`echo " $FREETYPE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'` fi if test "x$ac_cv_header_freetype_freetype_h" != xyes -o "x$wine_cv_fttrigon" != xyes; then : @@ -11316,6 +11336,8 @@ fi CPPFLAGS=$ac_save_CPPFLAGS +test -z "$GSTREAMER_CFLAGS" || GSTREAMER_CFLAGS=`echo " $GSTREAMER_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'` +test -z "$GSTREAMER_LIBS" || GSTREAMER_LIBS=`echo " $GSTREAMER_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'` fi if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then : @@ -11949,6 +11971,8 @@ fi PNG_CFLAGS="" fi CPPFLAGS=$ac_save_CPPFLAGS +test -z "$PNG_CFLAGS" || PNG_CFLAGS=`echo " $PNG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'` +test -z "$PNG_LIBS" || PNG_LIBS=`echo " $PNG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'` fi if test "x$ac_cv_lib_soname_png" = "x"; then :
1
0
0
0
Alexandre Julliard : configure: Move the checks inside the WINE_PACKAGE_FLAGS macro to enable restoring CPPFLAGS automatically .
by Alexandre Julliard
30 Jul '13
30 Jul '13
Module: wine Branch: master Commit: 75d4023153a27ebdfae0e9235785464728801c09 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=75d4023153a27ebdfae0e9235…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 30 16:09:51 2013 +0200 configure: Move the checks inside the WINE_PACKAGE_FLAGS macro to enable restoring CPPFLAGS automatically. --- aclocal.m4 | 29 ++++-- configure | 242 ++++++++++++++++++++++++++----------------------- configure.ac | 290 +++++++++++++++++++++++++++------------------------------- 3 files changed, 280 insertions(+), 281 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=75d4023153a27ebdfae0e…
1
0
0
0
Alistair Leslie-Hughes : oledb32: Implement DataConvert Variant->R8.
by Alexandre Julliard
30 Jul '13
30 Jul '13
Module: wine Branch: master Commit: d04d1f52309a4fa185cd303c2220ec61bd63f592 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d04d1f52309a4fa185cd303c2…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Tue Jun 25 14:48:04 2013 +1000 oledb32: Implement DataConvert Variant->R8. --- dlls/oledb32/convert.c | 5 ++++ dlls/oledb32/tests/convert.c | 54 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 0 deletions(-) diff --git a/dlls/oledb32/convert.c b/dlls/oledb32/convert.c index e68078b..8875057 100644 --- a/dlls/oledb32/convert.c +++ b/dlls/oledb32/convert.c @@ -361,6 +361,11 @@ static HRESULT WINAPI convert_DataConvert(IDataConvert* iface, case DBTYPE_BSTR: hr = VarR8FromStr(*(WCHAR**)src, LOCALE_USER_DEFAULT, 0, d); break; case DBTYPE_BOOL: hr = VarR8FromBool(*(VARIANT_BOOL*)src, d); break; case DBTYPE_DECIMAL: hr = VarR8FromDec((DECIMAL*)src, d); break; + case DBTYPE_VARIANT: + VariantInit(&tmp); + if ((hr = VariantChangeType(&tmp, (VARIANT*)src, 0, VT_R8)) == S_OK) + *d = V_R8(&tmp); + break; default: FIXME("Unimplemented conversion %04x -> R8\n", src_type); return E_NOTIMPL; } break; diff --git a/dlls/oledb32/tests/convert.c b/dlls/oledb32/tests/convert.c index 5c6694f..61607a9 100644 --- a/dlls/oledb32/tests/convert.c +++ b/dlls/oledb32/tests/convert.c @@ -2276,6 +2276,59 @@ static void test_converttor4(void) ok(dst == 10.0, "got %f\n", dst); } +static void test_converttor8(void) +{ + HRESULT hr; + DOUBLE dst; + BYTE src[20]; + DBSTATUS dst_status; + DBLENGTH dst_len; + VARIANT var; + + dst = 1.0; + dst_len = 0x1234; + hr = IDataConvert_DataConvert(convert, DBTYPE_EMPTY, DBTYPE_R8, 0, &dst_len, src, &dst, sizeof(dst), 0, &dst_status, 0, 0, 0); + ok(hr == S_OK, "got %08x\n", hr); + ok(dst_status == DBSTATUS_S_OK, "got %08x\n", dst_status); + ok(dst_len == sizeof(dst), "got %ld\n", dst_len); + ok(dst == 0.0, "got %f\n", dst); + + dst = 1.0; + dst_len = 0x1234; + hr = IDataConvert_DataConvert(convert, DBTYPE_NULL, DBTYPE_R8, 0, &dst_len, src, &dst, sizeof(dst), 0, &dst_status, 0, 0, 0); + ok(hr == DB_E_UNSUPPORTEDCONVERSION, "got %08x\n", hr); + ok(dst_status == DBSTATUS_E_BADACCESSOR, "got %08x\n", dst_status); + ok(dst_len == 0x1234, "got %ld\n", dst_len); + ok(dst == 1.0, "got %f\n", dst); + + dst = 1.0; + *(signed int*)src = 12345678; + dst_len = 0x1234; + hr = IDataConvert_DataConvert(convert, DBTYPE_I4, DBTYPE_R8, 0, &dst_len, src, &dst, sizeof(dst), 0, &dst_status, 0, 0, 0); + ok(hr == S_OK, "got %08x\n", hr); + ok(dst_status == DBSTATUS_S_OK, "got %08x\n", dst_status); + ok(dst_len == sizeof(dst), "got %ld\n", dst_len); + ok(dst == 12345678.0, "got %f\n", dst); + + dst = 1.0; + *(FLOAT *)src = 10.0; + dst_len = 0x1234; + hr = IDataConvert_DataConvert(convert, DBTYPE_R4, DBTYPE_R8, 0, &dst_len, src, &dst, sizeof(dst), 0, &dst_status, 0, 0, 0); + ok(hr == S_OK, "got %08x\n", hr); + ok(dst_status == DBSTATUS_S_OK, "got %08x\n", dst_status); + ok(dst_len == sizeof(dst), "got %ld\n", dst_len); + ok(dst == 10.0, "got %f\n", dst); + + dst_len = dst = 0x1234; + V_VT(&var) = VT_I2; + V_I2(&var) = 0x4321; + hr = IDataConvert_DataConvert(convert, DBTYPE_VARIANT, DBTYPE_R8, 0, &dst_len, &var, &dst, sizeof(dst), 0, &dst_status, 0, 0, 0); + ok(hr == S_OK, "got %08x\n", hr); + ok(dst_status == DBSTATUS_S_OK, "got %08x\n", dst_status); + ok(dst_len == sizeof(dst), "got %ld\n", dst_len); + ok(dst == 0x4321, "got %f\n", dst); +} + static void test_converttocy(void) { HRESULT hr; @@ -2862,6 +2915,7 @@ START_TEST(convert) test_converttoui1(); test_converttoui4(); test_converttor4(); + test_converttor8(); test_converttofiletime(); test_converttocy(); test_converttoui8();
1
0
0
0
Alistair Leslie-Hughes : msdasc.idl: Add coclass DataLinks.
by Alexandre Julliard
30 Jul '13
30 Jul '13
Module: wine Branch: master Commit: 0ad8a18e3a92b1eb8a6bfd8bb86a26908a66613f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0ad8a18e3a92b1eb8a6bfd8bb…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Fri Jun 14 11:50:22 2013 +1000 msdasc.idl: Add coclass DataLinks. --- include/msdasc.idl | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 61 insertions(+), 0 deletions(-) diff --git a/include/msdasc.idl b/include/msdasc.idl index 16d2372..f3b6a37 100644 --- a/include/msdasc.idl +++ b/include/msdasc.idl @@ -34,6 +34,56 @@ library MSDASC { importlib("stdole2.tlb"); + typedef DWORD DBPROMPTOPTIONS; + + typedef enum tagDBPROMPTOPTIONSENUM + { + DBPROMPTOPTIONS_NONE = 0x00, + DBPROMPTOPTIONS_WIZARDSHEET = 0x01, + DBPROMPTOPTIONS_PROPERTYSHEET = 0x02, + DBPROMPTOPTIONS_BROWSEONLY = 0x08, + DBPROMPTOPTIONS_DISABLE_PROVIDER_SELECTION = 0x10, + DBPROMPTOPTIONS_DISABLESAVEPASSWORD = 0x20 + } DBPROMPTOPTIONSENUM; + + [ + odl, + uuid(2206CCB2-19C1-11D1-89E0-00C04FD7A829), + helpstring("OLE DB Service Component Automation Interface"), + dual, + oleautomation + ] + interface IDataSourceLocator : IDispatch + { + [id(0x60020000), propget] + HRESULT hWnd([out, retval] long* phwndParent); + + [id(0x60020000), propput] + HRESULT hWnd([in] long phwndParent); + + [id(0x60020002), helpstring("PromptNew")] + HRESULT PromptNew([out, retval] IDispatch** ppADOConnection); + + [id(0x60020003), helpstring("PromptEdit")] + HRESULT PromptEdit([in, out] IDispatch** ppADOConnection, [out, retval] VARIANT_BOOL* pbSuccess); + } + + [ + odl, + uuid(2206CCB0-19C1-11D1-89E0-00C04FD7A829), + restricted + ] + interface IDBPromptInitialize : IUnknown + { + HRESULT _stdcall PromptDataSource([in] IUnknown* pUnkOuter, [in] HWND hWndParent, + [in] DBPROMPTOPTIONS dwPromptOptions, [in] ULONG cSourceTypeFilter, + [in] DBSOURCETYPE* rgSourceTypeFilter, [in] LPWSTR pwszszzProviderFilter, + [in] GUID* riid, [in, out] IUnknown** ppDataSource); + + HRESULT _stdcall PromptFileName([in] HWND hWndParent, [in] ULONG dwPromptOptions, + [in] LPWSTR pwszInitialDirectory, [in] LPWSTR pwszInitialFile, [out] LPWSTR* ppwszSelectedFile); + } + [ uuid(2206CCB1-19C1-11D1-89E0-00C04FD7A829), ] @@ -71,4 +121,15 @@ library MSDASC { [default] interface IDataInitialize; } + + [ + uuid(2206CDB2-19C1-11D1-89E0-00C04FD7A829), + progid("DataLinks") + ] + coclass DataLinks + { + [default] interface IDataSourceLocator; + interface IDBPromptInitialize; + interface IDataInitialize; + } }
1
0
0
0
Alexandre Julliard : secur32/tests: Run the tests against the winehq. org server.
by Alexandre Julliard
30 Jul '13
30 Jul '13
Module: wine Branch: master Commit: 55e37bdbf3b92f509b897991a4cb5649222f94c1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=55e37bdbf3b92f509b897991a…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 30 13:01:11 2013 +0200 secur32/tests: Run the tests against the
winehq.org
server. --- dlls/secur32/tests/schannel.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/secur32/tests/schannel.c b/dlls/secur32/tests/schannel.c index 5076767..0bb07bf 100644 --- a/dlls/secur32/tests/schannel.c +++ b/dlls/secur32/tests/schannel.c @@ -513,11 +513,11 @@ static void test_remote_cert(PCCERT_CONTEXT remote_cert) cert_cnt++; } - ok(cert_cnt == 2, "cert_cnt = %u\n", cert_cnt); + ok(cert_cnt == 3, "cert_cnt = %u\n", cert_cnt); ok(incl_remote, "context does not contain cert itself\n"); } -static const char http_request[] = "HEAD /test.html HTTP/1.1\r\nHost:
www.codeweavers.com\r\nConnection
: close\r\n\r\n"; +static const char http_request[] = "HEAD /test.html HTTP/1.1\r\nHost:
www.winehq.org\r\nConnection
: close\r\n\r\n"; static void init_cred(SCHANNEL_CRED *cred) { @@ -639,7 +639,7 @@ static void test_communication(void) return; } - /* Create a socket and connect to
www.codeweavers.com
*/ + /* Create a socket and connect to
www.winehq.org
*/ ret = WSAStartup(0x0202, &wsa_data); if (ret) { @@ -647,10 +647,10 @@ static void test_communication(void) return; } - host = gethostbyname("
www.codeweavers.com
"); + host = gethostbyname("
www.winehq.org
"); if (!host) { - skip("Can't resolve
www.codeweavers.com\n
"); + skip("Can't resolve
www.winehq.org\n
"); return; } @@ -667,7 +667,7 @@ static void test_communication(void) ret = connect(sock, (struct sockaddr *)&addr, sizeof(addr)); if (ret == SOCKET_ERROR) { - skip("Can't connect to
www.codeweavers.com\n
"); + skip("Can't connect to
www.winehq.org\n
"); return; }
1
0
0
0
Ken Sharp : kernel32: Correct log on / logon (noun / verb).
by Alexandre Julliard
30 Jul '13
30 Jul '13
Module: wine Branch: master Commit: 1e29e5208528a694890c34b727341b5a80bd24a8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1e29e5208528a694890c34b72…
Author: Ken Sharp <kennybobs(a)o2.co.uk> Date: Thu Jul 25 00:17:15 2013 +0100 kernel32: Correct log on / logon (noun / verb). --- dlls/kernel32/winerror.mc | 6 +++--- po/ar.po | 6 +++--- po/bg.po | 6 +++--- po/ca.po | 6 +++--- po/cs.po | 6 +++--- po/da.po | 6 +++--- po/de.po | 6 +++--- po/el.po | 6 +++--- po/en.po | 6 +++--- po/en_US.po | 12 ++++++------ po/eo.po | 6 +++--- po/es.po | 6 +++--- po/fa.po | 6 +++--- po/fi.po | 6 +++--- po/fr.po | 6 +++--- po/he.po | 6 +++--- po/hi.po | 6 +++--- po/hr.po | 6 +++--- po/hu.po | 6 +++--- po/it.po | 6 +++--- po/ja.po | 6 +++--- po/ko.po | 6 +++--- po/lt.po | 6 +++--- po/ml.po | 6 +++--- po/nb_NO.po | 6 +++--- po/nl.po | 6 +++--- po/or.po | 6 +++--- po/pa.po | 6 +++--- po/pl.po | 6 +++--- po/pt_BR.po | 6 +++--- po/pt_PT.po | 6 +++--- po/rm.po | 6 +++--- po/ro.po | 6 +++--- po/ru.po | 6 +++--- po/sk.po | 6 +++--- po/sl.po | 6 +++--- po/sr_RS(a)cyrillic.po | 6 +++--- po/sr_RS(a)latin.po | 6 +++--- po/sv.po | 6 +++--- po/te.po | 6 +++--- po/th.po | 6 +++--- po/tr.po | 6 +++--- po/uk.po | 6 +++--- po/wa.po | 6 +++--- po/wine.pot | 6 +++--- po/zh_CN.po | 6 +++--- po/zh_TW.po | 6 +++--- 47 files changed, 144 insertions(+), 144 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=1e29e5208528a694890c3…
1
0
0
0
Piotr Caban : scrrun/tests: Add IFilesystem3::CopyFolder tests.
by Alexandre Julliard
30 Jul '13
30 Jul '13
Module: wine Branch: master Commit: f4e4a608cc157275b610eea1093f5e33123dbfce URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f4e4a608cc157275b610eea10…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Tue Jul 30 11:32:27 2013 +0200 scrrun/tests: Add IFilesystem3::CopyFolder tests. --- dlls/scrrun/tests/filesystem.c | 125 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 125 insertions(+), 0 deletions(-) diff --git a/dlls/scrrun/tests/filesystem.c b/dlls/scrrun/tests/filesystem.c index 237c107..0ddbbac 100644 --- a/dlls/scrrun/tests/filesystem.c +++ b/dlls/scrrun/tests/filesystem.c @@ -526,6 +526,130 @@ static void test_GetFile(void) SysFreeString(path); } +static inline BOOL create_file(const WCHAR *name) +{ + HANDLE f = CreateFileW(name, GENERIC_WRITE, 0, NULL, CREATE_NEW, 0, NULL); + CloseHandle(f); + return f != INVALID_HANDLE_VALUE; +} + +static inline void create_path(const WCHAR *folder, const WCHAR *name, WCHAR *ret) +{ + DWORD len = lstrlenW(folder); + memmove(ret, folder, len*sizeof(WCHAR)); + ret[len] = '\\'; + memmove(ret+len+1, name, (lstrlenW(name)+1)*sizeof(WCHAR)); +} + +static void test_CopyFolder(void) +{ + static const WCHAR filesystem3_dir[] = {'f','i','l','e','s','y','s','t','e','m','3','_','t','e','s','t',0}; + static const WCHAR s1[] = {'s','r','c','1',0}; + static const WCHAR s[] = {'s','r','c','*',0}; + static const WCHAR d[] = {'d','s','t',0}; + static const WCHAR empty[] = {0}; + + WCHAR tmp[MAX_PATH]; + BSTR bsrc, bdst; + HRESULT hr; + + if(!CreateDirectoryW(filesystem3_dir, NULL)) { + skip("can't create temporary directory\n"); + return; + } + + create_path(filesystem3_dir, s1, tmp); + bsrc = SysAllocString(tmp); + create_path(filesystem3_dir, d, tmp); + bdst = SysAllocString(tmp); + hr = IFileSystem3_CopyFile(fs3, bsrc, bdst, VARIANT_TRUE); + ok(hr == CTL_E_FILENOTFOUND, "CopyFile returned %x, expected CTL_E_FILENOTFOUND\n", hr); + + hr = IFileSystem3_CopyFolder(fs3, bsrc, bdst, VARIANT_TRUE); + ok(hr == CTL_E_PATHNOTFOUND, "CopyFolder returned %x, expected CTL_E_PATHNOTFOUND\n", hr); + + ok(create_file(bsrc), "can't create %s file\n", wine_dbgstr_w(bsrc)); + hr = IFileSystem3_CopyFile(fs3, bsrc, bdst, VARIANT_TRUE); + ok(hr == S_OK, "CopyFile returned %x, expected S_OK\n", hr); + + hr = IFileSystem3_CopyFolder(fs3, bsrc, bdst, VARIANT_TRUE); + ok(hr == CTL_E_PATHNOTFOUND, "CopyFolder returned %x, expected CTL_E_PATHNOTFOUND\n", hr); + + hr = IFileSystem3_DeleteFile(fs3, bsrc, VARIANT_FALSE); + ok(hr == S_OK, "DeleteFile returned %x, expected S_OK\n", hr); + + ok(CreateDirectoryW(bsrc, NULL), "can't create %s\n", wine_dbgstr_w(bsrc)); + hr = IFileSystem3_CopyFile(fs3, bsrc, bdst, VARIANT_TRUE); + ok(hr == CTL_E_FILENOTFOUND, "CopyFile returned %x, expected CTL_E_FILENOTFOUND\n", hr); + + hr = IFileSystem3_CopyFolder(fs3, bsrc, bdst, VARIANT_TRUE); + ok(hr == CTL_E_FILEALREADYEXISTS, "CopyFolder returned %x, expected CTL_E_FILEALREADYEXISTS\n", hr); + + hr = IFileSystem3_DeleteFile(fs3, bdst, VARIANT_TRUE); + ok(hr == S_OK, "DeleteFile returned %x, expected S_OK\n", hr); + + hr = IFileSystem3_CopyFolder(fs3, bsrc, bdst, VARIANT_TRUE); + ok(hr == S_OK, "CopyFolder returned %x, expected S_OK\n", hr); + + hr = IFileSystem3_CopyFolder(fs3, bsrc, bdst, VARIANT_TRUE); + ok(hr == S_OK, "CopyFolder returned %x, expected S_OK\n", hr); + create_path(tmp, s1, tmp); + ok(GetFileAttributesW(tmp) == INVALID_FILE_ATTRIBUTES, + "%s file exists\n", wine_dbgstr_w(tmp)); + + create_path(filesystem3_dir, d, tmp); + create_path(tmp, empty, tmp); + SysFreeString(bdst); + bdst = SysAllocString(tmp); + hr = IFileSystem3_CopyFolder(fs3, bsrc, bdst, VARIANT_TRUE); + ok(hr == S_OK, "CopyFolder returned %x, expected S_OK\n", hr); + create_path(tmp, s1, tmp); + ok(GetFileAttributesW(tmp) != INVALID_FILE_ATTRIBUTES, + "%s directory doesn't exist\n", wine_dbgstr_w(tmp)); + ok(RemoveDirectoryW(tmp), "can't remove %s directory\n", wine_dbgstr_w(tmp)); + create_path(filesystem3_dir, d, tmp); + SysFreeString(bdst); + bdst = SysAllocString(tmp); + + + create_path(filesystem3_dir, s, tmp); + SysFreeString(bsrc); + bsrc = SysAllocString(tmp); + hr = IFileSystem3_CopyFolder(fs3, bsrc, bdst, VARIANT_TRUE); + ok(hr == S_OK, "CopyFolder returned %x, expected S_OK\n", hr); + create_path(filesystem3_dir, d, tmp); + create_path(tmp, s1, tmp); + ok(GetFileAttributesW(tmp) != INVALID_FILE_ATTRIBUTES, + "%s directory doesn't exist\n", wine_dbgstr_w(tmp)); + + hr = IFileSystem3_DeleteFolder(fs3, bdst, VARIANT_FALSE); + ok(hr == S_OK, "DeleteFolder returned %x, expected S_OK\n", hr); + + hr = IFileSystem3_CopyFolder(fs3, bsrc, bdst, VARIANT_TRUE); + ok(hr == CTL_E_PATHNOTFOUND, "CopyFolder returned %x, expected CTL_E_PATHNOTFOUND\n", hr); + + create_path(filesystem3_dir, s1, tmp); + SysFreeString(bsrc); + bsrc = SysAllocString(tmp); + create_path(tmp, s1, tmp); + ok(create_file(tmp), "can't create %s file\n", wine_dbgstr_w(tmp)); + hr = IFileSystem3_CopyFolder(fs3, bsrc, bdst, VARIANT_FALSE); + ok(hr == S_OK, "CopyFolder returned %x, expected S_OK\n", hr); + + hr = IFileSystem3_CopyFolder(fs3, bsrc, bdst, VARIANT_FALSE); + ok(hr == CTL_E_FILEALREADYEXISTS, "CopyFolder returned %x, expected CTL_E_FILEALREADYEXISTS\n", hr); + + hr = IFileSystem3_CopyFolder(fs3, bsrc, bdst, VARIANT_TRUE); + ok(hr == S_OK, "CopyFolder returned %x, expected S_OK\n", hr); + SysFreeString(bsrc); + SysFreeString(bdst); + + bsrc = SysAllocString(filesystem3_dir); + hr = IFileSystem3_DeleteFolder(fs3, bsrc, VARIANT_FALSE); + ok(hr == S_OK, "DeleteFolder returned %x, expected S_OK\n", hr); + SysFreeString(bsrc); +} + START_TEST(filesystem) { HRESULT hr; @@ -548,6 +672,7 @@ START_TEST(filesystem) test_GetBaseName(); test_GetAbsolutePathName(); test_GetFile(); + test_CopyFolder(); IFileSystem3_Release(fs3);
1
0
0
0
← Newer
1
2
3
4
5
6
7
8
...
45
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
Results per page:
10
25
50
100
200