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
June
May
April
March
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
May 2013
----- 2025 -----
June 2025
May 2025
April 2025
March 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
498 discussions
Start a n
N
ew thread
Christian Costa : d3dx9_36: Add support for D3DFMT_P8 and conversion to other ARGB formats + tests.
by Alexandre Julliard
23 May '13
23 May '13
Module: wine Branch: master Commit: edb01d2662748125b7ef7d9a1dc21419e33cad20 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=edb01d2662748125b7ef7d9a1…
Author: Christian Costa <titan.costa(a)gmail.com> Date: Sun May 19 22:32:18 2013 +0200 d3dx9_36: Add support for D3DFMT_P8 and conversion to other ARGB formats + tests. --- dlls/d3dx9_36/d3dx9_36_private.h | 7 ++-- dlls/d3dx9_36/surface.c | 68 +++++++++++++++++++++++++++++++------ dlls/d3dx9_36/tests/surface.c | 36 +++++++++++++++++--- dlls/d3dx9_36/util.c | 14 +++++++- dlls/d3dx9_36/volume.c | 10 ++++-- 5 files changed, 110 insertions(+), 25 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=edb01d2662748125b7ef7…
1
0
0
0
Jacek Caban : oleaut32: Added IExternalConnection tests.
by Alexandre Julliard
23 May '13
23 May '13
Module: wine Branch: master Commit: a047b2cb6f1a0ce0082ef6fe5bce9e2dcb124ede URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a047b2cb6f1a0ce0082ef6fe5…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Thu May 23 13:21:29 2013 +0200 oleaut32: Added IExternalConnection tests. --- dlls/oleaut32/tests/tmarshal.c | 203 ++++++++++++++++++++++++++++++++++++++ dlls/oleaut32/tests/tmarshal.idl | 11 ++ 2 files changed, 214 insertions(+), 0 deletions(-) diff --git a/dlls/oleaut32/tests/tmarshal.c b/dlls/oleaut32/tests/tmarshal.c index 2c1b8e8..3572bbb 100644 --- a/dlls/oleaut32/tests/tmarshal.c +++ b/dlls/oleaut32/tests/tmarshal.c @@ -151,6 +151,60 @@ static void end_host_object(DWORD tid, HANDLE thread) CloseHandle(thread); } +static int external_connections; + +static HRESULT WINAPI ExternalConnection_QueryInterface(IExternalConnection *iface, REFIID riid, void **ppv) +{ + ok(0, "unxpected call\n"); + *ppv = NULL; + return E_NOINTERFACE; +} + +static ULONG WINAPI ExternalConnection_AddRef(IExternalConnection *iface) +{ + return 2; +} + +static ULONG WINAPI ExternalConnection_Release(IExternalConnection *iface) +{ + return 1; +} + +static DWORD WINAPI ExternalConnection_AddConnection(IExternalConnection *iface, DWORD extconn, DWORD reserved) +{ + trace("add connection\n"); + + ok(extconn == EXTCONN_STRONG, "extconn = %d\n", extconn); + ok(!reserved, "reserved = %x\n", reserved); + return ++external_connections; +} + +static DWORD WINAPI ExternalConnection_ReleaseConnection(IExternalConnection *iface, DWORD extconn, + DWORD reserved, BOOL fLastReleaseCloses) +{ + trace("release connection\n"); + + ok(extconn == EXTCONN_STRONG, "extconn = %d\n", extconn); + ok(!reserved, "reserved = %x\n", reserved); + + /* This may need to be adjusted if we'll add more complex tests. */ + if(--external_connections) + ok(!fLastReleaseCloses, "fLastReleaseCloses = %x\n", fLastReleaseCloses); + else + ok(fLastReleaseCloses, "fLastReleaseCloses = %x\n", fLastReleaseCloses); + return external_connections; +} + +static const IExternalConnectionVtbl ExternalConnectionVtbl = { + ExternalConnection_QueryInterface, + ExternalConnection_AddRef, + ExternalConnection_Release, + ExternalConnection_AddConnection, + ExternalConnection_ReleaseConnection +}; + +static IExternalConnection ExternalConnection = { &ExternalConnectionVtbl }; + static ItestDual TestDual, TestDualDisp; static HRESULT WINAPI TestSecondIface_QueryInterface(ITestSecondIface *iface, REFIID riid, void **ppv) @@ -182,6 +236,67 @@ static const ITestSecondIfaceVtbl TestSecondIfaceVtbl = { static ITestSecondIface TestSecondIface = { &TestSecondIfaceVtbl }; +static HRESULT WINAPI TestSecondDisp_QueryInterface(ITestSecondDisp *iface, REFIID riid, void **ppv) +{ + return ItestDual_QueryInterface(&TestDual, riid, ppv); +} + +static ULONG WINAPI TestSecondDisp_AddRef(ITestSecondDisp *iface) +{ + return 2; +} + +static ULONG WINAPI TestSecondDisp_Release(ITestSecondDisp *iface) +{ + return 1; +} + +static HRESULT WINAPI TestSecondDisp_GetTypeInfoCount(ITestSecondDisp *iface, UINT *pctinfo) +{ + ok(0, "unexpected call\n"); + return E_NOTIMPL; +} + +static HRESULT WINAPI TestSecondDisp_GetTypeInfo(ITestSecondDisp *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo) +{ + ok(0, "unexpected call\n"); + return E_NOTIMPL; +} + +static HRESULT WINAPI TestSecondDisp_GetIDsOfNames(ITestSecondDisp *iface, REFIID riid, LPOLESTR *rgszNames, + UINT cNames, LCID lcid, DISPID *rgDispId) +{ + ok(0, "unexpected call\n"); + return E_NOTIMPL; +} + +static HRESULT WINAPI TestSecondDisp_Invoke(ITestSecondDisp *iface, DISPID dispIdMember, REFIID riid, LCID lcid, + WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, + UINT *puArgErr) +{ + ok(0, "unexpected call\n"); + return E_NOTIMPL; +} + +static HRESULT WINAPI TestSecondDisp_test(ITestSecondDisp *iface) +{ + ok(0, "unexpected call\n"); + return E_NOTIMPL; +} + +static ITestSecondDispVtbl TestSecondDispVtbl = { + TestSecondDisp_QueryInterface, + TestSecondDisp_AddRef, + TestSecondDisp_Release, + TestSecondDisp_GetTypeInfoCount, + TestSecondDisp_GetTypeInfo, + TestSecondDisp_GetIDsOfNames, + TestSecondDisp_Invoke, + TestSecondDisp_test +}; + +static ITestSecondDisp TestSecondDisp = { &TestSecondDispVtbl }; + static HRESULT WINAPI TestDual_QueryInterface(ItestDual *iface, REFIID riid, void **ppvObject) { if (IsEqualIID(riid, &IID_IUnknown) || IsEqualIID(riid, &IID_IDispatch)) { @@ -193,6 +308,13 @@ static HRESULT WINAPI TestDual_QueryInterface(ItestDual *iface, REFIID riid, voi }else if(IsEqualGUID(riid, &IID_ITestSecondIface)) { *ppvObject = &TestSecondIface; return S_OK; + }else if(IsEqualGUID(riid, &IID_ITestSecondDisp)) { + *ppvObject = &TestSecondDisp; + return S_OK; + }else if (IsEqualGUID(riid, &IID_IExternalConnection)) { + trace("QI external connection\n"); + *ppvObject = &ExternalConnection; + return S_OK; } *ppvObject = NULL; @@ -1704,6 +1826,86 @@ static void test_libattr(void) ITypeLib_Release(pTypeLib); } +static void test_external_connection(void) +{ + IStream *stream, *stream2; + ITestSecondDisp *second; + ItestDual *iface; + HANDLE thread; + DWORD tid; + HRESULT hres; + + static const LARGE_INTEGER zero; + + trace("Testing IExternalConnection...\n"); + + external_connections = 0; + + /* Marshaling an interface increases external connection count. */ + hres = CreateStreamOnHGlobal(NULL, TRUE, &stream); + ok(hres == S_OK, "CreateStreamOnHGlobal failed: %08x\n", hres); + tid = start_host_object(stream, &IID_ItestDual, (IUnknown*)&TestDual, MSHLFLAGS_NORMAL, &thread); + ok(external_connections == 1, "external_connections = %d\n", external_connections); + + IStream_Seek(stream, zero, STREAM_SEEK_SET, NULL); + hres = CoUnmarshalInterface(stream, &IID_ItestDual, (void**)&iface); + ok(hres == S_OK, "CoUnmarshalInterface failed: %08x\n", hres); + ok(external_connections == 1, "external_connections = %d\n", external_connections); + + IStream_Release(stream); + ok(external_connections == 1, "external_connections = %d\n", external_connections); + + /* Creating a stub for new iface does not cause new external connection. */ + hres = ItestDual_QueryInterface(iface, &IID_ITestSecondDisp, (void**)&second); + ok(hres == S_OK, "Could not get ITestSecondDisp iface: %08x\n", hres); + ok(external_connections == 1, "external_connections = %d\n", external_connections); + + ITestSecondDisp_Release(second); + ok(external_connections == 1, "external_connections = %d\n", external_connections); + + ItestDual_Release(iface); + ok(external_connections == 0, "external_connections = %d\n", external_connections); + + end_host_object(tid, thread); + + /* A test with direct CoMarshalInterface call. */ + hres = CreateStreamOnHGlobal(NULL, TRUE, &stream); + ok(hres == S_OK, "CreateStreamOnHGlobal failed: %08x\n", hres); + + hres = CoMarshalInterface(stream, &IID_ItestDual, (IUnknown*)&TestDual, MSHCTX_INPROC, NULL, MSHLFLAGS_NORMAL); + ok(hres == S_OK, "CoMarshalInterface failed: %08x\n", hres); + ok(external_connections == 1, "external_connections = %d\n", external_connections); + + IStream_Seek(stream, zero, STREAM_SEEK_SET, NULL); + hres = CoReleaseMarshalData(stream); + ok(hres == S_OK, "CoReleaseMarshalData failed: %08x\n", hres); + ok(external_connections == 0, "external_connections = %d\n", external_connections); + + /* Two separated marshal data are still one external connection. */ + hres = CreateStreamOnHGlobal(NULL, TRUE, &stream2); + ok(hres == S_OK, "CreateStreamOnHGlobal failed: %08x\n", hres); + + IStream_Seek(stream, zero, STREAM_SEEK_SET, NULL); + hres = CoMarshalInterface(stream, &IID_ItestDual, (IUnknown*)&TestDual, MSHCTX_INPROC, NULL, MSHLFLAGS_NORMAL); + ok(hres == S_OK, "CoMarshalInterface failed: %08x\n", hres); + ok(external_connections == 1, "external_connections = %d\n", external_connections); + + hres = CoMarshalInterface(stream2, &IID_ItestDual, (IUnknown*)&TestDual, MSHCTX_INPROC, NULL, MSHLFLAGS_NORMAL); + ok(hres == S_OK, "CoMarshalInterface failed: %08x\n", hres); + ok(external_connections == 1, "external_connections = %d\n", external_connections); + + IStream_Seek(stream, zero, STREAM_SEEK_SET, NULL); + hres = CoReleaseMarshalData(stream); + ok(hres == S_OK, "CoReleaseMarshalData failed: %08x\n", hres); + ok(external_connections == 1, "external_connections = %d\n", external_connections); + + IStream_Seek(stream2, zero, STREAM_SEEK_SET, NULL); + hres = CoReleaseMarshalData(stream2); + ok(hres == S_OK, "CoReleaseMarshalData failed: %08x\n", hres); + ok(external_connections == 0, "external_connections = %d\n", external_connections); + +} + START_TEST(tmarshal) { HRESULT hr; @@ -1724,6 +1926,7 @@ START_TEST(tmarshal) test_DispCallFunc(); test_StaticWidget(); test_libattr(); + test_external_connection(); hr = UnRegisterTypeLib(&LIBID_TestTypelib, 1, 0, LOCALE_NEUTRAL, sizeof(void*) == 8 ? SYS_WIN64 : SYS_WIN32); diff --git a/dlls/oleaut32/tests/tmarshal.idl b/dlls/oleaut32/tests/tmarshal.idl index 8dca84c..0f0186b 100644 --- a/dlls/oleaut32/tests/tmarshal.idl +++ b/dlls/oleaut32/tests/tmarshal.idl @@ -75,6 +75,17 @@ library TestTypelib [ odl, + oleautomation, + dual, + uuid(3f7e06fe-0bce-46f0-8b7d-3a68393c7967) + ] + interface ITestSecondDisp : IDispatch + { + HRESULT test(); + } + + [ + odl, uuid(a1f8cae3-c947-4c5f-b57d-c87b9b5f3586), oleautomation, dual
1
0
0
0
Jacek Caban : ole32: Added IExternalConnection support.
by Alexandre Julliard
23 May '13
23 May '13
Module: wine Branch: master Commit: a30cc75fe08b0d1a35af009fbbdf61fa87b79061 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a30cc75fe08b0d1a35af009fb…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Thu May 23 13:21:12 2013 +0200 ole32: Added IExternalConnection support. --- dlls/ole32/compobj_private.h | 2 ++ dlls/ole32/stubmanager.c | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 0 deletions(-) diff --git a/dlls/ole32/compobj_private.h b/dlls/ole32/compobj_private.h index f2c9d31..c4379cb 100644 --- a/dlls/ole32/compobj_private.h +++ b/dlls/ole32/compobj_private.h @@ -98,6 +98,8 @@ struct stub_manager ULONG next_ipid; /* currently unused (LOCK) */ OXID_INFO oxid_info; /* string binding, ipid of rem unknown and other information (RO) */ + IExternalConnection *extern_conn; + /* We need to keep a count of the outstanding marshals, so we can enforce the * marshalling rules (ie, you can only unmarshal normal marshals once). Note * that these counts do NOT include unmarshalled interfaces, once a stream is diff --git a/dlls/ole32/stubmanager.c b/dlls/ole32/stubmanager.c index e7018b9..822b299 100644 --- a/dlls/ole32/stubmanager.c +++ b/dlls/ole32/stubmanager.c @@ -173,6 +173,7 @@ struct ifstub *stub_manager_find_ifstub(struct stub_manager *m, REFIID iid, MSHL struct stub_manager *new_stub_manager(APARTMENT *apt, IUnknown *object) { struct stub_manager *sm; + HRESULT hres; assert( apt ); @@ -218,6 +219,16 @@ struct stub_manager *new_stub_manager(APARTMENT *apt, IUnknown *object) */ sm->extrefs = 0; + /* + * NOTE: According to tests, creating a stub causes two AddConnection calls followed by + * one ReleaseConnection call (with fLastReleaseCloses=FALSE). + */ + hres = IUnknown_QueryInterface(object, &IID_IExternalConnection, (void**)&sm->extern_conn); + if(SUCCEEDED(hres)) + IExternalConnection_AddConnection(sm->extern_conn, EXTCONN_STRONG, 0); + else + sm->extern_conn = NULL; + EnterCriticalSection(&apt->cs); sm->oid = apt->oidc++; list_add_head(&apt->stubmgrs, &sm->entry); @@ -242,6 +253,11 @@ static void stub_manager_delete(struct stub_manager *m) stub_manager_delete_ifstub(m, ifstub); } + if(m->extern_conn) { + IExternalConnection_ReleaseConnection(m->extern_conn, EXTCONN_STRONG, 0, TRUE); + IExternalConnection_Release(m->extern_conn); + } + CoTaskMemFree(m->oxid_info.psa); IUnknown_Release(m->object);
1
0
0
0
Jacek Caban : ole32: Use a separated object to expose local servers instead of marshaling them in CoRegisterClassObject .
by Alexandre Julliard
23 May '13
23 May '13
Module: wine Branch: master Commit: 889112a29a951be278bfa84ffc05d8d8518cef61 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=889112a29a951be278bfa84ff…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Thu May 23 13:20:41 2013 +0200 ole32: Use a separated object to expose local servers instead of marshaling them in CoRegisterClassObject. --- dlls/ole32/compobj.c | 187 +++++++++++++++++++++++++++++++------ dlls/ole32/compobj_private.h | 12 +++ dlls/ole32/errorinfo.c | 10 -- dlls/ole32/rpc.c | 13 ++- dlls/ole32/tests/defaulthandler.c | 2 - 5 files changed, 181 insertions(+), 43 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=889112a29a951be278bfa…
1
0
0
0
Alexandre Julliard : wininet/tests: Use test.winehq. org for all certificate tests.
by Alexandre Julliard
23 May '13
23 May '13
Module: wine Branch: master Commit: 147ffa0ccd84f16fa694f8b92be596283f353b4c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=147ffa0ccd84f16fa694f8b92…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu May 23 19:23:17 2013 +0200 wininet/tests: Use
test.winehq.org
for all certificate tests. --- dlls/wininet/tests/http.c | 29 +++++++++++++---------------- 1 files changed, 13 insertions(+), 16 deletions(-) diff --git a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c index bc3505f..60fbe57 100644 --- a/dlls/wininet/tests/http.c +++ b/dlls/wininet/tests/http.c @@ -3461,19 +3461,16 @@ static void test_cert_struct(HINTERNET req) BOOL res; static const char ex_subject[] = - "US\r\n" - "Minnesota\r\n" - "Saint Paul\r\n" - "WineHQ\r\n" - "test.winehq.org\r\n" - "webmaster(a)winehq.org"; + "0mJuv1t-1CFypQkyTZwfvjHHBAbnUndG\r\n" + "GT98380011\r\n" + "See
www.rapidssl.com/resources/cps
(c)13\r\n" + "Domain Control Validated - RapidSSL(R)\r\n" + "*.winehq.org"; static const char ex_issuer[] = "US\r\n" - "Minnesota\r\n" - "WineHQ\r\n" - "test.winehq.org\r\n" - "webmaster(a)winehq.org"; + "\"GeoTrust, Inc.\"\r\n" + "RapidSSL CA"; memset(&info, 0x5, sizeof(info)); @@ -3841,9 +3838,9 @@ static void test_security_flags(void) static void test_secure_connection(void) { static const WCHAR gizmo5[] = {'G','i','z','m','o','5',0}; - static const WCHAR testbot[] = {'t','e','s','t','b','o','t','.','w','i','n','e','h','q','.','o','r','g',0}; + static const WCHAR testsite[] = {'t','e','s','t','.','w','i','n','e','h','q','.','o','r','g',0}; static const WCHAR get[] = {'G','E','T',0}; - static const WCHAR slash[] = {'/',0}; + static const WCHAR testpage[] = {'/','t','e','s','t','s','/','h','e','l','l','o','.','h','t','m','l',0}; HINTERNET ses, con, req; DWORD size, flags; INTERNET_CERTIFICATE_INFOA *certificate_structA = NULL; @@ -3853,12 +3850,12 @@ static void test_secure_connection(void) ses = InternetOpen("Gizmo5", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0); ok(ses != NULL, "InternetOpen failed\n"); - con = InternetConnect(ses, "
testbot.winehq.org
", + con = InternetConnect(ses, "
test.winehq.org
", INTERNET_DEFAULT_HTTPS_PORT, NULL, NULL, INTERNET_SERVICE_HTTP, 0, 0); ok(con != NULL, "InternetConnect failed\n"); - req = HttpOpenRequest(con, "GET", "/", NULL, NULL, NULL, + req = HttpOpenRequest(con, "GET", "/tests/hello.html", NULL, NULL, NULL, INTERNET_FLAG_SECURE, 0); ok(req != NULL, "HttpOpenRequest failed\n"); @@ -3937,12 +3934,12 @@ static void test_secure_connection(void) ses = InternetOpenW(gizmo5, INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0); ok(ses != NULL, "InternetOpen failed\n"); - con = InternetConnectW(ses, testbot, + con = InternetConnectW(ses, testsite, INTERNET_DEFAULT_HTTPS_PORT, NULL, NULL, INTERNET_SERVICE_HTTP, 0, 0); ok(con != NULL, "InternetConnect failed\n"); - req = HttpOpenRequestW(con, get, slash, NULL, NULL, NULL, + req = HttpOpenRequestW(con, get, testpage, NULL, NULL, NULL, INTERNET_FLAG_SECURE, 0); ok(req != NULL, "HttpOpenRequest failed\n");
1
0
0
0
Alistair Leslie-Hughes : oledb32: DataConvert only variant length types can have a null dst.
by Alexandre Julliard
23 May '13
23 May '13
Module: wine Branch: master Commit: 7a762fee023cc2585348308945d16b0b114b7e01 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7a762fee023cc258534830894…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Thu May 23 14:57:39 2013 +1000 oledb32: DataConvert only variant length types can have a null dst. --- dlls/oledb32/convert.c | 7 +++++++ dlls/oledb32/tests/convert.c | 7 +++++++ 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/dlls/oledb32/convert.c b/dlls/oledb32/convert.c index 7e09016..9d41860 100644 --- a/dlls/oledb32/convert.c +++ b/dlls/oledb32/convert.c @@ -191,6 +191,13 @@ static HRESULT WINAPI convert_DataConvert(IDataConvert* iface, return S_OK; } + if(dst == NULL && get_length(dst_type) != 0) + { + *dst_len = get_length(src_type); + *dst_status = DBSTATUS_S_OK; + return S_OK; + } + if(src_type == DBTYPE_STR) { BSTR b; diff --git a/dlls/oledb32/tests/convert.c b/dlls/oledb32/tests/convert.c index bb81835..ee2a39b 100644 --- a/dlls/oledb32/tests/convert.c +++ b/dlls/oledb32/tests/convert.c @@ -892,6 +892,13 @@ todo_wine ok(dst_status == DBSTATUS_S_ISNULL, "got %08x\n", dst_status); ok(dst_len == 0, "got %ld\n", dst_len); + /* dst = NULL */ + *(int *)src = 0x4321cafe; + dst_len = 0x1234; + hr = IDataConvert_DataConvert(convert, DBTYPE_I4, DBTYPE_I4, 0, &dst_len, src, NULL, 0, 0, NULL, 0, 0, 0); + ok(hr == S_OK, "got %08x\n", hr); + ok(dst_len == sizeof(i4), "got %ld\n", dst_len); + } static void test_converttoi8(void)
1
0
0
0
Alistair Leslie-Hughes : oledb32: Implement DataConvert DBTYPE_BYTES-> DBTYPE_BYTES | DBTYPE_BYREF.
by Alexandre Julliard
23 May '13
23 May '13
Module: wine Branch: master Commit: 72845af0a62ae3f5b63883a8976b60f6390ca300 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=72845af0a62ae3f5b63883a89…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Thu May 23 14:24:08 2013 +1000 oledb32: Implement DataConvert DBTYPE_BYTES->DBTYPE_BYTES | DBTYPE_BYREF. --- dlls/oledb32/convert.c | 19 +++++++++++++++++++ dlls/oledb32/tests/convert.c | 18 ++++++++++++++++++ 2 files changed, 37 insertions(+), 0 deletions(-) diff --git a/dlls/oledb32/convert.c b/dlls/oledb32/convert.c index 61a2be6..7e09016 100644 --- a/dlls/oledb32/convert.c +++ b/dlls/oledb32/convert.c @@ -957,6 +957,25 @@ static HRESULT WINAPI convert_DataConvert(IDataConvert* iface, } break; } + case DBTYPE_BYTES | DBTYPE_BYREF: + { + BYTE **d = dst; + + switch(src_type) + { + case DBTYPE_BYTES: + *d = CoTaskMemAlloc(src_len); + if(*d) memcpy(*d, src, src_len); + else hr = E_OUTOFMEMORY; + + *dst_len = src_len; + *dst_status = DBSTATUS_S_OK; + return S_OK; + default: FIXME("Unimplemented conversion %04x -> DBTYPE_BYTES | DBTYPE_BYREF\n", src_type); return E_NOTIMPL; + } + break; + } + break; default: FIXME("Unimplemented conversion %04x -> %04x\n", src_type, dst_type); diff --git a/dlls/oledb32/tests/convert.c b/dlls/oledb32/tests/convert.c index b3eda95..bb81835 100644 --- a/dlls/oledb32/tests/convert.c +++ b/dlls/oledb32/tests/convert.c @@ -2463,6 +2463,23 @@ static void test_converttobytes(void) ok(!memcmp(byte_src, dst, 2 ), "bytes differ\n"); } +static void test_converttobytesbyref(void) +{ + DBLENGTH dst_len; + HRESULT hr; + BYTE byte_src[] = {0, 1, 2, 4, 5}; + BYTE *dst; + DBSTATUS dst_status; + + dst_len = 0; + hr = IDataConvert_DataConvert(convert, DBTYPE_BYTES, DBTYPE_BYTES | DBTYPE_BYREF, sizeof(byte_src), &dst_len, byte_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(byte_src), "got %ld\n", dst_len); + ok(!memcmp(byte_src, dst, dst_len ), "bytes differ\n"); + CoTaskMemFree(dst); +} + static void test_converttodbdate(void) { DBLENGTH dst_len; @@ -2693,6 +2710,7 @@ START_TEST(convert) test_converttoui8(); test_converttovar(); test_converttobytes(); + test_converttobytesbyref(); test_converttodbdate(); test_getconversionsize(); test_converttotimestamp();
1
0
0
0
Alistair Leslie-Hughes : oledb32: Implement DataConvert DBTYPE_VARIANT-> DBTYPE_DATE.
by Alexandre Julliard
23 May '13
23 May '13
Module: wine Branch: master Commit: 0d6eadc4a98db83c342f8252ced26b548a171b5a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0d6eadc4a98db83c342f8252c…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Thu May 23 10:56:44 2013 +1000 oledb32: Implement DataConvert DBTYPE_VARIANT->DBTYPE_DATE. --- dlls/oledb32/convert.c | 21 +++++++++++++++++++++ dlls/oledb32/tests/convert.c | 11 +++++++++++ 2 files changed, 32 insertions(+), 0 deletions(-) diff --git a/dlls/oledb32/convert.c b/dlls/oledb32/convert.c index ab188ee..61a2be6 100644 --- a/dlls/oledb32/convert.c +++ b/dlls/oledb32/convert.c @@ -428,6 +428,27 @@ static HRESULT WINAPI convert_DataConvert(IDataConvert* iface, switch (src_type) { case DBTYPE_DBDATE: memcpy(d, src, sizeof(DBDATE)); hr = S_OK; break; + case DBTYPE_BSTR: + { + VARIANT var; + BSTR s = *(WCHAR**)src; + + VariantInit(&var); + V_VT(&var) = VT_BSTR; + V_BSTR(&var) = SysAllocString(s); + + if ((hr = VariantChangeType(&var, &var, 0, VT_DATE)) == S_OK) + { + SYSTEMTIME st; + hr = (VariantTimeToSystemTime( V_DATE(&var), &st) ? S_OK : E_FAIL); + d->year = st.wYear; + d->month = st.wMonth; + d->day = st.wDay; + } + + VariantClear(&var); + } + break; case DBTYPE_VARIANT: if( V_VT((VARIANT*)src) == VT_DATE) { diff --git a/dlls/oledb32/tests/convert.c b/dlls/oledb32/tests/convert.c index 92d3a64..b3eda95 100644 --- a/dlls/oledb32/tests/convert.c +++ b/dlls/oledb32/tests/convert.c @@ -2467,10 +2467,12 @@ static void test_converttodbdate(void) { DBLENGTH dst_len; HRESULT hr; + static WCHAR strW[] = {'2','0','1','3','-','0','5','-','1','4',0}; DBDATE ts = {2013, 5, 14}; DBDATE dst; DBSTATUS dst_status; VARIANT var; + BSTR bstr; dst_len = 0; hr = IDataConvert_DataConvert(convert, DBTYPE_DBDATE, DBTYPE_DBDATE, sizeof(ts), &dst_len, &ts, &dst, 2, 0, &dst_status, 0, 0, 0); @@ -2488,6 +2490,15 @@ static void test_converttodbdate(void) ok(dst_status == DBSTATUS_S_OK, "got %08x\n", dst_status); ok(dst_len == sizeof(DBDATE), "got %ld\n", dst_len); ok(!memcmp(&ts, &dst, sizeof(DBDATE) ), "bytes differ\n"); + + dst_len = 0; + bstr = SysAllocString(strW); + hr = IDataConvert_DataConvert(convert, DBTYPE_BSTR, DBTYPE_DBDATE, 0, &dst_len, &bstr, &dst, 2, 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(DBDATE), "got %ld\n", dst_len); + ok(!memcmp(&ts, &dst, sizeof(DBDATE) ), "bytes differ\n"); + SysFreeString(bstr); }
1
0
0
0
Akihiro Sagawa : fonts: Add default glyph to Japanese Fixedsys.
by Alexandre Julliard
23 May '13
23 May '13
Module: wine Branch: master Commit: 8e2cd615c3dc884dc76bd75a77d35fc1fcaf8217 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8e2cd615c3dc884dc76bd75a7…
Author: Akihiro Sagawa <sagawa.aki(a)gmail.com> Date: Thu May 23 20:17:55 2013 +0900 fonts: Add default glyph to Japanese Fixedsys. --- fonts/fixedsys_jp.sfd | 8 ++++---- fonts/fixedsys_jp.ttf | Bin 7704 -> 7704 bytes 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fonts/fixedsys_jp.sfd b/fonts/fixedsys_jp.sfd index 165608f..35bd3c3 100644 --- a/fonts/fixedsys_jp.sfd +++ b/fonts/fixedsys_jp.sfd @@ -19,7 +19,7 @@ OS2Version: 1 OS2_WeightWidthSlopeOnly: 0 OS2_UseTypoMetrics: 1 CreationTime: 1360244595 -ModificationTime: 1360589010 +ModificationTime: 1366561299 PfmFamily: 49 TTFWeight: 400 TTFWidth: 5 @@ -1084,7 +1084,7 @@ StartChar: uni00A0 Encoding: 160 160 128 Width: 8 VWidth: 0 -Flags: W +Flags: HW LayerCount: 2 EndChar @@ -2105,8 +2105,8 @@ BDFChar: 126 158 8 1 6 -1 12 r;?Kjr;?Kjr;?Kjr;6Np BDFChar: 127 159 8 1 6 -1 12 r;?Kjr;?Kjr;?Kjr;6Np -BDFChar: 128 160 8 2 2 0 0 -z +BDFChar: 128 160 8 1 6 -1 12 +r;?Kjr;?Kjr;?Kjr;6Np BDFChar: 129 161 8 1 4 0 3 @$$IX BDFChar: 130 162 8 1 5 8 13 diff --git a/fonts/fixedsys_jp.ttf b/fonts/fixedsys_jp.ttf index 947731d..39f3755 100644 Binary files a/fonts/fixedsys_jp.ttf and b/fonts/fixedsys_jp.ttf differ
1
0
0
0
Akihiro Sagawa : fonts: Add default glpyh to Japanese System font.
by Alexandre Julliard
23 May '13
23 May '13
Module: wine Branch: master Commit: 3f0e3ef6b4f422d0528d8031bbad3727face17dd URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3f0e3ef6b4f422d0528d8031b…
Author: Akihiro Sagawa <sagawa.aki(a)gmail.com> Date: Thu May 23 20:17:52 2013 +0900 fonts: Add default glpyh to Japanese System font. --- fonts/system.sfd | 2 ++ fonts/system.ttf | Bin 27496 -> 27536 bytes 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/fonts/system.sfd b/fonts/system.sfd index d4df11c..499ceb4 100644 --- a/fonts/system.sfd +++ b/fonts/system.sfd @@ -5479,6 +5479,8 @@ BDFChar: 254 382 7 1 6 0 10 b]kfAr!XDr@)2[? BDFChar: 339 8240 16 0 14 0 9 E+%>6fmn,D"oo&3)k8h[B(j-4 +BDFChar: 342 8364 8 1 6 1 14 +r;?Kjr;?Kjr;?Kjr;6Np BDFChar: 348 138 8 1 6 -1 13 r;?Kjr;?Kjr;?Kjr;?Hm BDFChar: 349 140 8 1 6 -1 13 diff --git a/fonts/system.ttf b/fonts/system.ttf index 25c5239..275c53b 100644 Binary files a/fonts/system.ttf and b/fonts/system.ttf differ
1
0
0
0
← Newer
1
...
12
13
14
15
16
17
18
...
50
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
Results per page:
10
25
50
100
200