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
Alistair Leslie-Hughes : oledb32: Add some missing defines.
by Alexandre Julliard
29 Jul '13
29 Jul '13
Module: wine Branch: master Commit: d09ec59157a57e6a03e2a06e9e8082e3b6f3ec99 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d09ec59157a57e6a03e2a06e9…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Tue Jun 25 12:23:39 2013 +1000 oledb32: Add some missing defines. --- include/oledberr.h | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/include/oledberr.h b/include/oledberr.h index b91b429..9b87ba7 100644 --- a/include/oledberr.h +++ b/include/oledberr.h @@ -33,7 +33,14 @@ #define DB_E_BADCOMPAREOP 0x80040e27 #define DB_E_BADSTATUSVALUE 0x80040e28 -#define DB_E_CONCURRENCYVIOLATION 0x80040e38 +#define DB_E_CONCURRENCYVIOLATION 0x80040e38 + +#define DB_E_TABLEINUSE 0x80040e40 +#define DB_E_NOLOCALE 0x80040e41 +#define DB_E_BADRECORDNUM 0x80040e42 +#define DB_E_BOOKMARKSKIPPED 0x80040e43 +#define DB_E_BADPROPERTYVALUE 0x80040e44 +#define DB_E_INVALID 0x80040e45 #define DB_E_DATAOVERFLOW 0x80040e57
1
0
0
0
Alistair Leslie-Hughes : oledb32: Add support for IErrorRecords.
by Alexandre Julliard
29 Jul '13
29 Jul '13
Module: wine Branch: master Commit: a32391ab6b8857215b8d0f8ca0392958f4a4e8bc URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a32391ab6b8857215b8d0f8ca…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Tue Jun 18 10:22:57 2013 +1000 oledb32: Add support for IErrorRecords. --- dlls/msdaps/usrmarshal.c | 183 ++++++++++++++++++++++++++++++++++++++++++++++ include/Makefile.in | 1 + include/errrec.idl | 78 ++++++++++++++++++++ include/oledb.idl | 1 + tools/make_makefiles | 1 + 5 files changed, 264 insertions(+), 0 deletions(-) diff --git a/dlls/msdaps/usrmarshal.c b/dlls/msdaps/usrmarshal.c index 7bbaa7b..b93340e 100644 --- a/dlls/msdaps/usrmarshal.c +++ b/dlls/msdaps/usrmarshal.c @@ -1096,3 +1096,186 @@ HRESULT __RPC_STUB ISourcesRowset_GetSourcesRowset_Stub(ISourcesRowset* This, IU return hr; } + +HRESULT CALLBACK IErrorRecords_GetRecordCount_Proxy(IErrorRecords* This, ULONG *records) +{ + HRESULT hr; + IErrorInfo *error; + + TRACE("(%p)->%p\n", This, records); + + hr = IErrorRecords_RemoteGetRecordCount_Proxy(This, records, &error); + if(error) + { + SetErrorInfo(0, error); + IErrorInfo_Release(error); + } + + return hr; +} + +HRESULT __RPC_STUB IErrorRecords_GetRecordCount_Stub(IErrorRecords* This, ULONG *pcRecords, IErrorInfo **ppErrorInfoRem) +{ + HRESULT hr; + + TRACE("(%p)->%p %p\n", This, pcRecords, ppErrorInfoRem); + + *ppErrorInfoRem = NULL; + hr = IErrorRecords_GetRecordCount(This, pcRecords); + if(FAILED(hr)) + GetErrorInfo(0, ppErrorInfoRem); + + return hr; +} + +HRESULT CALLBACK IErrorRecords_GetErrorParameters_Proxy(IErrorRecords* This, ULONG ulRecordNum, DISPPARAMS *pdispparams) +{ + HRESULT hr; + IErrorInfo *error; + + TRACE("(%p)->%d %p\n", This, ulRecordNum, pdispparams); + + hr = IErrorRecords_RemoteGetErrorParameters_Proxy(This, ulRecordNum, pdispparams, &error); + if(error) + { + SetErrorInfo(0, error); + IErrorInfo_Release(error); + } + + return hr; +} + +HRESULT __RPC_STUB IErrorRecords_GetErrorParameters_Stub(IErrorRecords* This, ULONG ulRecordNum, DISPPARAMS *pdispparams, + IErrorInfo **ppErrorInfoRem) +{ + HRESULT hr; + + TRACE("(%p)->%d %p %p\n", This, ulRecordNum, pdispparams, ppErrorInfoRem); + + *ppErrorInfoRem = NULL; + hr = IErrorRecords_GetErrorParameters(This, ulRecordNum, pdispparams); + if(FAILED(hr)) + GetErrorInfo(0, ppErrorInfoRem); + + return hr; +} + +HRESULT CALLBACK IErrorRecords_GetErrorInfo_Proxy(IErrorRecords* This, ULONG ulRecordNum, LCID lcid, IErrorInfo **ppErrorInfo) +{ + HRESULT hr; + IErrorInfo *error; + + TRACE("(%p)->%d %d %p\n", This, ulRecordNum, lcid, ppErrorInfo); + + hr = IErrorRecords_RemoteGetErrorInfo_Proxy(This, ulRecordNum, lcid, ppErrorInfo, &error); + if(error) + { + SetErrorInfo(0, error); + IErrorInfo_Release(error); + } + + return hr; +} + +HRESULT __RPC_STUB IErrorRecords_GetErrorInfo_Stub(IErrorRecords* This, ULONG ulRecordNum, LCID lcid, + IErrorInfo **ppErrorInfo, IErrorInfo **ppErrorInfoRem) +{ + HRESULT hr; + + TRACE("(%p)->%d %d %p %p\n", This, ulRecordNum, lcid, ppErrorInfo, ppErrorInfoRem); + + *ppErrorInfoRem = NULL; + hr = IErrorRecords_GetErrorInfo(This, ulRecordNum, lcid, ppErrorInfo); + if(FAILED(hr)) + GetErrorInfo(0, ppErrorInfoRem); + + return hr; +} + +HRESULT CALLBACK IErrorRecords_GetCustomErrorObject_Proxy(IErrorRecords* This, ULONG ulRecordNum, REFIID riid, + IUnknown **ppObject) +{ + HRESULT hr; + IErrorInfo *error; + + TRACE("(%p)->%d %s %p\n", This, ulRecordNum, debugstr_guid(riid), ppObject); + + hr = IErrorRecords_RemoteGetCustomErrorObject_Proxy(This, ulRecordNum, riid, ppObject, &error); + if(error) + { + SetErrorInfo(0, error); + IErrorInfo_Release(error); + } + return hr; +} + +HRESULT __RPC_STUB IErrorRecords_GetCustomErrorObject_Stub(IErrorRecords* This, ULONG ulRecordNum, REFIID riid, + IUnknown **ppObject, IErrorInfo **ppErrorInfoRem) +{ + HRESULT hr; + + TRACE("(%p)->%d %s %p %p\n", This, ulRecordNum, debugstr_guid(riid), ppObject, ppErrorInfoRem); + + *ppErrorInfoRem = NULL; + hr = IErrorRecords_GetCustomErrorObject(This, ulRecordNum, riid, ppObject); + if(FAILED(hr)) + GetErrorInfo(0, ppErrorInfoRem); + + return hr; +} + +HRESULT CALLBACK IErrorRecords_GetBasicErrorInfo_Proxy(IErrorRecords* This, ULONG ulRecordNum, ERRORINFO *pErrorInfo) +{ + TRACE("(%p)->%d %p\n", This, ulRecordNum, pErrorInfo); + + return IErrorRecords_GetBasicErrorInfo_Proxy(This, ulRecordNum, pErrorInfo); +} + +HRESULT __RPC_STUB IErrorRecords_GetBasicErrorInfo_Stub(IErrorRecords* This, ULONG ulRecordNum, ERRORINFO *pErrorInfo, + IErrorInfo **ppErrorInfoRem) +{ + HRESULT hr; + + TRACE("(%p)->%d %p %p\n", This, ulRecordNum, pErrorInfo, ppErrorInfoRem); + + *ppErrorInfoRem = NULL; + hr = IErrorRecords_GetBasicErrorInfo(This, ulRecordNum, pErrorInfo); + if(FAILED(hr)) + GetErrorInfo(0, ppErrorInfoRem); + + return hr; +} + +HRESULT CALLBACK IErrorRecords_AddErrorRecord_Proxy(IErrorRecords* This, ERRORINFO *pErrorInfo, DWORD dwLookupID, + DISPPARAMS *pdispparams, IUnknown *punkCustomError, DWORD dwDynamicErrorID) +{ + HRESULT hr; + IErrorInfo *error; + + TRACE("(%p)->%p %d %p %p %d\n", This, pErrorInfo, dwLookupID, pdispparams, punkCustomError, dwDynamicErrorID); + + hr = IErrorRecords_RemoteAddErrorRecord_Proxy(This, pErrorInfo, dwLookupID, pdispparams, punkCustomError, + dwDynamicErrorID, &error); + if(error) + { + SetErrorInfo(0, error); + IErrorInfo_Release(error); + } + return hr; +} + +HRESULT __RPC_STUB IErrorRecords_AddErrorRecord_Stub(IErrorRecords* This, ERRORINFO *pErrorInfo, DWORD dwLookupID, + DISPPARAMS *pdispparams, IUnknown *punkCustomError, DWORD dwDynamicErrorID, IErrorInfo **ppErrorInfoRem) +{ + HRESULT hr; + + TRACE("(%p)->%p %d %p %p %d %p\n", This, pErrorInfo, dwLookupID, pdispparams, punkCustomError, + dwDynamicErrorID, ppErrorInfoRem); + + *ppErrorInfoRem = NULL; + hr = IErrorRecords_AddErrorRecord(This, pErrorInfo, dwLookupID, pdispparams, punkCustomError, dwDynamicErrorID); + if(FAILED(hr)) + GetErrorInfo(0, ppErrorInfoRem); + + return hr; +} diff --git a/include/Makefile.in b/include/Makefile.in index 9a06ac6..a56c6bd 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -288,6 +288,7 @@ SRCDIR_INCLUDES = \ dyngraph.idl \ errorrep.h \ errors.h \ + errrec.idl \ evcode.h \ evntprov.h \ evntrace.h \ diff --git a/include/errrec.idl b/include/errrec.idl new file mode 100644 index 0000000..865b3f2 --- /dev/null +++ b/include/errrec.idl @@ -0,0 +1,78 @@ +/* + * Copyright (C) 2013 Alistair Leslie-Hughes + * + * 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(0c733a67-2a1c-11ce-ade5-00aa0044773d), + pointer_default(unique) +] +interface IErrorRecords : IUnknown +{ + +cpp_quote("#define IDENTIFIER_SDK_MASK 0xF0000000") +cpp_quote("#define IDENTIFIER_SDK_ERROR 0x10000000") + +typedef struct tagERRORINFO +{ + HRESULT hrError; + DWORD dwMinor; + CLSID clsid; + IID iid; + DISPID dispid; +} ERRORINFO; + + [local] + HRESULT AddErrorRecord([in] ERRORINFO * pErrorInfo, [in] DWORD dwLookupID, [in] DISPPARAMS * pdispparams, + [in] IUnknown * punkCustomError, [in] DWORD dwDynamicErrorID); + + [call_as(AddErrorRecord)] + HRESULT RemoteAddErrorRecord([in] ERRORINFO * pErrorInfo, [in] DWORD dwLookupID, [in] DISPPARAMS * pdispparams, + [in] IUnknown * punkCustomError, [in] DWORD dwDynamicErrorID, [out] IErrorInfo ** ppErrorInfoRem); + + [local] + HRESULT GetBasicErrorInfo([in] ULONG ulRecordNum, [out] ERRORINFO * pErrorInfo); + + [call_as(GetBasicErrorInfo)] + HRESULT RemoteGetBasicErrorInfo([in] ULONG ulRecordNum, [out] ERRORINFO * pErrorInfo, [out] IErrorInfo **ppErrorInfoRem); + + [local] + HRESULT GetCustomErrorObject([in] ULONG ulRecordNum, [in] REFIID riid, [out] IUnknown ** ppObject); + + [call_as(GetCustomErrorObject)] + HRESULT RemoteGetCustomErrorObject([in] ULONG ulRecordNum, [in] REFIID riid, [out] IUnknown ** ppObject, + [out] IErrorInfo **ppErrorInfoRem); + + [local] + HRESULT GetErrorInfo([in] ULONG ulRecordNum, [in] LCID lcid, [out] IErrorInfo **ppErrorInfo); + + [call_as(GetErrorInfo)] + HRESULT RemoteGetErrorInfo([in] ULONG ulRecordNum, [in] LCID lcid, [out] IErrorInfo **ppErrorInfo, + [out] IErrorInfo **ppErrorInfoRem); + + [local] + HRESULT GetErrorParameters([in] ULONG ulRecordNum, [out] DISPPARAMS * pdispparams); + + [call_as(GetErrorParameters)] + HRESULT RemoteGetErrorParameters([in] ULONG ulRecordNum, [out] DISPPARAMS * pdispparams, [out] IErrorInfo ** ppErrorInfoRem); + + [local] + HRESULT GetRecordCount([out] ULONG *records); + + [call_as(GetRecordCount)] + HRESULT RemoteGetRecordCount([out] ULONG * pcRecords, [out] IErrorInfo **ppErrorInfoRem); +} diff --git a/include/oledb.idl b/include/oledb.idl index 0580932..5cd287f 100644 --- a/include/oledb.idl +++ b/include/oledb.idl @@ -66,6 +66,7 @@ typedef DWORD_PTR DBHASHVALUE; #include "rowchg.idl" #include "binres.idl" #include "crtrow.idl" +#include "errrec.idl" cpp_quote("#include <accctrl.h>") diff --git a/tools/make_makefiles b/tools/make_makefiles index bfa904e..6d4e8a7 100755 --- a/tools/make_makefiles +++ b/tools/make_makefiles @@ -151,6 +151,7 @@ my %private_idl_headers = ( "dbs.idl" => 1, "devenum.idl" => 1, "dyngraph.idl" => 1, + "errrec.idl" => 1, "opnrst.idl" => 1, "row.idl" => 1, "rowchg.idl" => 1,
1
0
0
0
Alistair Leslie-Hughes : oledb32: Add interface ISourcesRowset.
by Alexandre Julliard
29 Jul '13
29 Jul '13
Module: wine Branch: master Commit: 83c14c723c9f5f4b233881677009fd4def61493b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=83c14c723c9f5f4b233881677…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Mon Jun 3 12:29:34 2013 +1000 oledb32: Add interface ISourcesRowset. --- dlls/msdaps/usrmarshal.c | 36 +++++++++++++++++++++++++++++++ include/Makefile.in | 1 + include/oledb.idl | 1 + include/srcrst.idl | 53 ++++++++++++++++++++++++++++++++++++++++++++++ tools/make_makefiles | 1 + 5 files changed, 92 insertions(+), 0 deletions(-) diff --git a/dlls/msdaps/usrmarshal.c b/dlls/msdaps/usrmarshal.c index 92bd802..7bbaa7b 100644 --- a/dlls/msdaps/usrmarshal.c +++ b/dlls/msdaps/usrmarshal.c @@ -1060,3 +1060,39 @@ HRESULT __RPC_STUB IRowsetNotify_OnRowsetChange_Stub(IRowsetNotify* This, IRowse TRACE("(%p)->(%p %d %d %d)\n", This, rowset, reason, phase, cantdeny); return IRowsetNotify_OnRowsetChange(This, rowset, reason, phase, cantdeny); } + + +HRESULT CALLBACK ISourcesRowset_GetSourcesRowset_Proxy(ISourcesRowset* This, IUnknown *pUnkOuter, REFIID riid, ULONG cPropertySets, + DBPROPSET rgProperties[], IUnknown **ppSourcesRowset) +{ + HRESULT hr; + IErrorInfo *error; + + TRACE("(%p)->(%p %s %d %p %p)\n", This, pUnkOuter, debugstr_guid(riid), cPropertySets, rgProperties, ppSourcesRowset); + + hr = ISourcesRowset_RemoteGetSourcesRowset_Proxy(This, pUnkOuter, riid, cPropertySets, rgProperties, ppSourcesRowset, 0, NULL, &error); + if(error) + { + SetErrorInfo(0, error); + IErrorInfo_Release(error); + } + + return hr; +} + +HRESULT __RPC_STUB ISourcesRowset_GetSourcesRowset_Stub(ISourcesRowset* This, IUnknown *pUnkOuter, REFIID riid, ULONG cPropertySets, + DBPROPSET *rgProperties, IUnknown **ppSourcesRowset, ULONG cTotalProps, DBPROPSTATUS *rgPropStatus, + IErrorInfo **ppErrorInfoRem) +{ + HRESULT hr; + + TRACE("(%p)->(%p %s %d %p %p %d %p %p)\n", This, pUnkOuter, debugstr_guid(riid), cPropertySets, rgProperties, ppSourcesRowset, + cTotalProps, rgPropStatus, ppErrorInfoRem); + + *ppErrorInfoRem = NULL; + hr = ISourcesRowset_GetSourcesRowset(This, pUnkOuter, riid, cPropertySets, rgProperties, ppSourcesRowset); + if(FAILED(hr)) + GetErrorInfo(0, ppErrorInfoRem); + + return hr; +} diff --git a/include/Makefile.in b/include/Makefile.in index c3a39bc..9a06ac6 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -514,6 +514,7 @@ SRCDIR_INCLUDES = \ sql.h \ sqlext.h \ sqltypes.h \ + srcrst.idl \ srrestoreptapi.h \ sspi.h \ sti.h \ diff --git a/include/oledb.idl b/include/oledb.idl index eaa49a6..0580932 100644 --- a/include/oledb.idl +++ b/include/oledb.idl @@ -53,6 +53,7 @@ typedef DWORD_PTR DBHASHVALUE; #include "cmdtxt.idl" #include "dbccmd.idl" #include "dbcses.idl" +#include "srcrst.idl" #include "dbprop.idl" #include "dbinit.idl" #include "dbdsad.idl" diff --git a/include/srcrst.idl b/include/srcrst.idl new file mode 100644 index 0000000..83aae52 --- /dev/null +++ b/include/srcrst.idl @@ -0,0 +1,53 @@ +/* + * Copyright (C) 2013 Alistair Leslie-Hughes + * + * 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(0c733a1e-2a1c-11ce-ade5-00aa0044773d), + pointer_default(unique) +] +interface ISourcesRowset : IUnknown +{ + typedef DWORD DBSOURCETYPE; + + enum DBSOURCETYPEENUM + { + DBSOURCETYPE_DATASOURCE = 1, + DBSOURCETYPE_ENUMERATOR = 2, + }; + + enum DBSOURCETYPEENUM20 + { + DBSOURCETYPE_DATASOURCE_TDP = 1, + DBSOURCETYPE_DATASOURCE_MDP = 3, + }; + + enum DBSOURCETYPEENUM25 + { + DBSOURCETYPE_BINDER = 4, + }; + + [local] + HRESULT GetSourcesRowset([in] IUnknown * pUnkOuter, [in] REFIID riid, [in] ULONG cPropertySets, + [in, out] DBPROPSET rgProperties[], [out] IUnknown **ppSourcesRowset); + + [call_as(GetSourcesRowset)] + HRESULT RemoteGetSourcesRowset([in] IUnknown * pUnkOuter, [in] REFIID riid, [in] ULONG cPropertySets, + [in] DBPROPSET * rgProperties, [out] IUnknown **ppSourcesRowset, [in] ULONG cTotalProps, + [out] DBPROPSTATUS *rgPropStatus, [out] IErrorInfo **ppErrorInfoRem); +} diff --git a/tools/make_makefiles b/tools/make_makefiles index 91b136d..bfa904e 100755 --- a/tools/make_makefiles +++ b/tools/make_makefiles @@ -158,6 +158,7 @@ my %private_idl_headers = ( "rstinf.idl" => 1, "rstloc.idl" => 1, "rstnot.idl" => 1, + "srcrst.idl" => 1, "sesprp.idl" => 1, "vmrender.idl" => 1, "xmldom.idl" => 1,
1
0
0
0
Christian Costa : d3dx9_36: Release shader if getting constant table fails in D3DXCompileShader.
by Alexandre Julliard
29 Jul '13
29 Jul '13
Module: wine Branch: master Commit: a8728893b7ed793a1f57f47e948f838244cdd95b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a8728893b7ed793a1f57f47e9…
Author: Christian Costa <titan.costa(a)gmail.com> Date: Tue Jul 23 08:20:30 2013 +0200 d3dx9_36: Release shader if getting constant table fails in D3DXCompileShader. --- dlls/d3dx9_36/shader.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/dlls/d3dx9_36/shader.c b/dlls/d3dx9_36/shader.c index 15dbb7a..457036b 100644 --- a/dlls/d3dx9_36/shader.c +++ b/dlls/d3dx9_36/shader.c @@ -368,7 +368,14 @@ HRESULT WINAPI D3DXCompileShader(const char *data, UINT length, const D3DXMACRO function, profile, flags, 0, (ID3DBlob **)shader, (ID3DBlob **)error_msgs); if (SUCCEEDED(hr) && constant_table) + { hr = D3DXGetShaderConstantTable(ID3DXBuffer_GetBufferPointer(*shader), constant_table); + if (FAILED(hr)) + { + ID3DXBuffer_Release(*shader); + *shader = NULL; + } + } return hr; }
1
0
0
0
Vincent Povirk : advpack: Handle quoted arguments to rundll exports.
by Alexandre Julliard
29 Jul '13
29 Jul '13
Module: wine Branch: master Commit: 531f795623659c77380ff4e79c7445731e2976da URL:
http://source.winehq.org/git/wine.git/?a=commit;h=531f795623659c77380ff4e79…
Author: Vincent Povirk <vincent(a)codeweavers.com> Date: Mon Jul 22 16:48:19 2013 -0500 advpack: Handle quoted arguments to rundll exports. --- dlls/advpack/advpack.c | 8 ++++---- dlls/advpack/advpack_private.h | 2 +- dlls/advpack/files.c | 4 ++-- dlls/advpack/install.c | 27 +++++++++++++++++++-------- dlls/advpack/tests/install.c | 2 +- 5 files changed, 27 insertions(+), 16 deletions(-) diff --git a/dlls/advpack/advpack.c b/dlls/advpack/advpack.c index 919c0bc..296abb5 100644 --- a/dlls/advpack/advpack.c +++ b/dlls/advpack/advpack.c @@ -175,7 +175,7 @@ void set_ldids(HINF hInf, LPCWSTR pszInstallSection, LPCWSTR pszWorkingDir) FIXME("Need to support changing paths - default will be used\n"); /* set all ldids to dest */ - while ((ptr = get_parameter(&key, ','))) + while ((ptr = get_parameter(&key, ',', FALSE))) { ldid = atolW(ptr); SetupSetDirectoryIdW(hInf, ldid, dest); @@ -508,12 +508,12 @@ HRESULT WINAPI RegisterOCX(HWND hWnd, HINSTANCE hInst, LPCSTR cmdline, INT show) cmdline_ptr = cmdline_copy; lstrcpyW(cmdline_copy, cmdlineW.Buffer); - ocx_filename = get_parameter(&cmdline_ptr, ','); + ocx_filename = get_parameter(&cmdline_ptr, ',', TRUE); if (!ocx_filename || !*ocx_filename) goto done; - str_flags = get_parameter(&cmdline_ptr, ','); - param = get_parameter(&cmdline_ptr, ','); + str_flags = get_parameter(&cmdline_ptr, ',', TRUE); + param = get_parameter(&cmdline_ptr, ',', TRUE); hm = LoadLibraryExW(ocx_filename, NULL, LOAD_WITH_ALTERED_SEARCH_PATH); if (!hm) diff --git a/dlls/advpack/advpack_private.h b/dlls/advpack/advpack_private.h index 5d74897..205cc60 100644 --- a/dlls/advpack/advpack_private.h +++ b/dlls/advpack/advpack_private.h @@ -22,7 +22,7 @@ #define __ADVPACK_PRIVATE_H HRESULT do_ocx_reg(HMODULE hocx, BOOL do_reg, const WCHAR *flags, const WCHAR *param) DECLSPEC_HIDDEN; -LPWSTR get_parameter(LPWSTR *params, WCHAR separator) DECLSPEC_HIDDEN; +LPWSTR get_parameter(LPWSTR *params, WCHAR separator, BOOL quoted) DECLSPEC_HIDDEN; void set_ldids(HINF hInf, LPCWSTR pszInstallSection, LPCWSTR pszWorkingDir) DECLSPEC_HIDDEN; HRESULT launch_exe(LPCWSTR cmd, LPCWSTR dir, HANDLE *phEXE) DECLSPEC_HIDDEN; diff --git a/dlls/advpack/files.c b/dlls/advpack/files.c index a1d52f8..1e555f7 100644 --- a/dlls/advpack/files.c +++ b/dlls/advpack/files.c @@ -501,8 +501,8 @@ HRESULT WINAPI DelNodeRunDLL32W(HWND hWnd, HINSTANCE hInst, LPWSTR cmdline, INT lstrcpyW(cmdline_copy, cmdline); /* get the parameters at indexes 0 and 1 respectively */ - szFilename = get_parameter(&cmdline_ptr, ','); - szFlags = get_parameter(&cmdline_ptr, ','); + szFilename = get_parameter(&cmdline_ptr, ',', TRUE); + szFlags = get_parameter(&cmdline_ptr, ',', TRUE); if (szFlags) dwFlags = atolW(szFlags); diff --git a/dlls/advpack/install.c b/dlls/advpack/install.c index 6079625..f75eb01 100644 --- a/dlls/advpack/install.c +++ b/dlls/advpack/install.c @@ -205,13 +205,24 @@ static HRESULT run_setup_commands_callback(HINF hinf, PCWSTR field, const void * /* sequentially returns pointers to parameters in a parameter list * returns NULL if the parameter is empty, e.g. one,,three */ -LPWSTR get_parameter(LPWSTR *params, WCHAR separator) +LPWSTR get_parameter(LPWSTR *params, WCHAR separator, BOOL quoted) { LPWSTR token = *params; if (!*params) return NULL; + if (quoted && *token == '"') + { + WCHAR *end = strchrW(token + 1, '"'); + if (end) + { + *end = 0; + *params = end + 1; + token = token + 1; + } + } + *params = strchrW(*params, separator); if (*params) *(*params)++ = '\0'; @@ -760,10 +771,10 @@ INT WINAPI LaunchINFSectionW(HWND hWnd, HINSTANCE hInst, LPWSTR cmdline, INT sho cmdline_ptr = cmdline_copy; lstrcpyW(cmdline_copy, cmdline); - inf_filename = get_parameter(&cmdline_ptr, ','); - install_sec = get_parameter(&cmdline_ptr, ','); + inf_filename = get_parameter(&cmdline_ptr, ',', TRUE); + install_sec = get_parameter(&cmdline_ptr, ',', TRUE); - str_flags = get_parameter(&cmdline_ptr, ','); + str_flags = get_parameter(&cmdline_ptr, ',', TRUE); if (str_flags) flags = atolW(str_flags); @@ -853,12 +864,12 @@ HRESULT WINAPI LaunchINFSectionExW(HWND hWnd, HINSTANCE hInst, LPWSTR cmdline, I cmdline_ptr = cmdline_copy; lstrcpyW(cmdline_copy, cmdline); - cabinfo.pszInf = get_parameter(&cmdline_ptr, ','); - cabinfo.pszSection = get_parameter(&cmdline_ptr, ','); - cabinfo.pszCab = get_parameter(&cmdline_ptr, ','); + cabinfo.pszInf = get_parameter(&cmdline_ptr, ',', TRUE); + cabinfo.pszSection = get_parameter(&cmdline_ptr, ',', TRUE); + cabinfo.pszCab = get_parameter(&cmdline_ptr, ',', TRUE); *cabinfo.szSrcPath = '\0'; - flags = get_parameter(&cmdline_ptr, ','); + flags = get_parameter(&cmdline_ptr, ',', TRUE); if (flags) cabinfo.dwFlags = atolW(flags); diff --git a/dlls/advpack/tests/install.c b/dlls/advpack/tests/install.c index 932f2da..ea479fd 100644 --- a/dlls/advpack/tests/install.c +++ b/dlls/advpack/tests/install.c @@ -242,7 +242,7 @@ static void test_LaunchINFSectionEx(void) lstrcat(cmdline, CURR_DIR); lstrcat(cmdline, "\\test.inf\",\"DefaultInstall\",\"c:,imacab.cab\",\"4\""); hr = pLaunchINFSectionEx(NULL, NULL, cmdline, 0); - todo_wine ok(hr == 0, "Expected 0, got %d\n", hr); + ok(hr == 0, "Expected 0, got %d\n", hr); /* The 'No UI' flag seems to have no effect whatsoever on Windows. * So only do this test in interactive mode.
1
0
0
0
Vincent Povirk : advpack/tests: Add test for LaunchINFSectionEx with quoted filename.
by Alexandre Julliard
29 Jul '13
29 Jul '13
Module: wine Branch: master Commit: 17f6609702c71a53d26c30e60e20578fb1e3531c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=17f6609702c71a53d26c30e60…
Author: Vincent Povirk <vincent(a)codeweavers.com> Date: Mon Jul 22 14:46:12 2013 -0500 advpack/tests: Add test for LaunchINFSectionEx with quoted filename. --- dlls/advpack/tests/install.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/dlls/advpack/tests/install.c b/dlls/advpack/tests/install.c index 4876d71..932f2da 100644 --- a/dlls/advpack/tests/install.c +++ b/dlls/advpack/tests/install.c @@ -237,6 +237,13 @@ static void test_LaunchINFSectionEx(void) hr = pLaunchINFSectionEx(NULL, NULL, cmdline, 0); ok(hr == 0, "Expected 0, got %d\n", hr); + /* try quoting the parameters */ + lstrcpy(cmdline, "\""); + lstrcat(cmdline, CURR_DIR); + lstrcat(cmdline, "\\test.inf\",\"DefaultInstall\",\"c:,imacab.cab\",\"4\""); + hr = pLaunchINFSectionEx(NULL, NULL, cmdline, 0); + todo_wine ok(hr == 0, "Expected 0, got %d\n", hr); + /* The 'No UI' flag seems to have no effect whatsoever on Windows. * So only do this test in interactive mode. */
1
0
0
0
Bruno Jesus : ws2_32: Fix listen() implementation.
by Alexandre Julliard
27 Jul '13
27 Jul '13
Module: wine Branch: master Commit: 3fea3a5b1a6285787f182276fd806238fe9fc2cc URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3fea3a5b1a6285787f182276f…
Author: Bruno Jesus <00cpxxx(a)gmail.com> Date: Mon Jul 22 22:31:41 2013 -0300 ws2_32: Fix listen() implementation. --- dlls/ws2_32/socket.c | 35 ++++++++++++++++++++++++----------- dlls/ws2_32/tests/sock.c | 15 +++++---------- 2 files changed, 29 insertions(+), 21 deletions(-) diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c index 7ad118f..462f153 100644 --- a/dlls/ws2_32/socket.c +++ b/dlls/ws2_32/socket.c @@ -3695,23 +3695,36 @@ int WINAPI WS_ioctlsocket(SOCKET s, LONG cmd, WS_u_long *argp) */ int WINAPI WS_listen(SOCKET s, int backlog) { - int fd = get_sock_fd( s, FILE_READ_DATA, NULL ); + int fd = get_sock_fd( s, FILE_READ_DATA, NULL ), ret = SOCKET_ERROR; TRACE("socket %04lx, backlog %d\n", s, backlog); if (fd != -1) { - if (listen(fd, backlog) == 0) - { - release_sock_fd( s, fd ); - _enable_event(SOCKET2HANDLE(s), FD_ACCEPT, - FD_WINE_LISTENING, - FD_CONNECT|FD_WINE_CONNECTED); - return 0; - } - SetLastError(wsaErrno()); + union generic_unix_sockaddr uaddr; + socklen_t uaddrlen = sizeof(uaddr); + + if (getsockname(fd, &uaddr.addr, &uaddrlen) != 0) + { + SetLastError(wsaErrno()); + } + else if (!is_sockaddr_bound(&uaddr.addr, uaddrlen)) + { + SetLastError(WSAEINVAL); + } + else if (listen(fd, backlog) == 0) + { + _enable_event(SOCKET2HANDLE(s), FD_ACCEPT, + FD_WINE_LISTENING, + FD_CONNECT|FD_WINE_CONNECTED); + ret = 0; + } + else + SetLastError(wsaErrno()); release_sock_fd( s, fd ); } - return SOCKET_ERROR; + else + SetLastError(WSAENOTSOCK); + return ret; } /*********************************************************************** diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c index bcf7abc..5a76a7a 100644 --- a/dlls/ws2_32/tests/sock.c +++ b/dlls/ws2_32/tests/sock.c @@ -2372,13 +2372,11 @@ static void test_listen(void) SetLastError(0xdeadbeef); ok ((listen(0, 0) == SOCKET_ERROR), "listen did not fail\n"); ret = WSAGetLastError(); -todo_wine ok (ret == WSAENOTSOCK, "expected 10038, received %d\n", ret); SetLastError(0xdeadbeef); ok ((listen(0xdeadbeef, 0) == SOCKET_ERROR), "listen did not fail\n"); ret = WSAGetLastError(); -todo_wine ok (ret == WSAENOTSOCK, "expected 10038, received %d\n", ret); /* tcp tests */ @@ -2388,7 +2386,6 @@ todo_wine fdB = socket(AF_INET, SOCK_STREAM, 0); ok ((fdB != INVALID_SOCKET), "socket failed unexpectedly: %d\n", WSAGetLastError() ); -todo_wine { SetLastError(0xdeadbeef); ok ((listen(fdA, -2) == SOCKET_ERROR), "listen did not fail\n"); ret = WSAGetLastError(); @@ -2409,27 +2406,27 @@ todo_wine { SetLastError(0xdeadbeef); ok (bind(fdB, (struct sockaddr*) &address, sizeof(address)), "bind should have failed\n"); ok (ret == WSAEINVAL, "expected 10022, received %d\n", ret); -} + ok (!listen(fdA, 0), "listen failed\n"); ok (!listen(fdA, SOMAXCONN), "double listen failed\n"); -todo_wine { + SetLastError(0xdeadbeef); ok ((listen(fdB, SOMAXCONN) == SOCKET_ERROR), "listen did not fail\n"); ret = WSAGetLastError(); ok (ret == WSAEINVAL, "expected 10022, received %d\n", ret); -} + ret = closesocket(fdB); ok (ret == 0, "closesocket failed unexpectedly: %d\n", ret); fdB = socket(AF_INET, SOCK_STREAM, 0); ok ((fdB != INVALID_SOCKET), "socket failed unexpectedly: %d\n", WSAGetLastError() ); -todo_wine { + SetLastError(0xdeadbeef); ok (bind(fdB, (struct sockaddr*) &address, sizeof(address)), "bind should have failed\n"); ret = WSAGetLastError(); ok (ret == WSAEADDRINUSE, "expected 10048, received %d\n", ret); -} + ret = closesocket(fdA); ok (ret == 0, "closesocket failed unexpectedly: %d\n", ret); ret = closesocket(fdB); @@ -2477,9 +2474,7 @@ static void test_select(void) ok ( !FD_ISSET(fdRead, &exceptfds), "FD should not be set\n"); ok ( !FD_ISSET(fdWrite, &exceptfds), "FD should not be set\n"); - todo_wine { ok ((listen(fdWrite, SOMAXCONN) == SOCKET_ERROR), "listen did not fail\n"); - } ret = closesocket(fdWrite); ok ( (ret == 0), "closesocket failed unexpectedly: %d\n", ret);
1
0
0
0
Charles Davis : winemac.drv: Also return the number of pixel formats if the caller didn' t supply a PIXELFORMATDESCRIPTOR.
by Alexandre Julliard
27 Jul '13
27 Jul '13
Module: wine Branch: master Commit: 05a68dbc556cf4055c094c1d9670e98e505d090c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=05a68dbc556cf4055c094c1d9…
Author: Charles Davis <cdavis5x(a)gmail.com> Date: Tue Jul 23 21:26:29 2013 -0600 winemac.drv: Also return the number of pixel formats if the caller didn't supply a PIXELFORMATDESCRIPTOR. --- dlls/winemac.drv/opengl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/winemac.drv/opengl.c b/dlls/winemac.drv/opengl.c index 0922371..fb294d1 100644 --- a/dlls/winemac.drv/opengl.c +++ b/dlls/winemac.drv/opengl.c @@ -3281,7 +3281,7 @@ int macdrv_wglDescribePixelFormat(HDC hdc, int fmt, UINT size, PIXELFORMATDESCRI TRACE("hdc %p fmt %d size %u descr %p\n", hdc, fmt, size, descr); - if (fmt <= 0 || fmt > ret) return ret; + if (fmt <= 0 || fmt > ret || !descr) return ret; if (size < sizeof(*descr)) return 0; pf = &pixel_formats[fmt - 1];
1
0
0
0
Andrew Eikum : dsound: Allow multiple buffers to capture from the same device.
by Alexandre Julliard
27 Jul '13
27 Jul '13
Module: wine Branch: master Commit: dcaeb6b4fdf890d68d2c3c4d4d3372cf6d3d7e7a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=dcaeb6b4fdf890d68d2c3c4d4…
Author: Andrew Eikum <aeikum(a)codeweavers.com> Date: Fri Jul 26 14:24:23 2013 -0500 dsound: Allow multiple buffers to capture from the same device. --- dlls/dsound/capture.c | 8 -------- 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/dlls/dsound/capture.c b/dlls/dsound/capture.c index 01cf775..63bda55 100644 --- a/dlls/dsound/capture.c +++ b/dlls/dsound/capture.c @@ -986,14 +986,6 @@ static HRESULT DirectSoundCaptureDevice_Initialize( EnterCriticalSection(&DSOUND_capturers_lock); - LIST_FOR_EACH_ENTRY(device, &DSOUND_capturers, DirectSoundCaptureDevice, entry){ - if(IsEqualGUID(&device->guid, &devGUID)){ - IMMDevice_Release(mmdevice); - LeaveCriticalSection(&DSOUND_capturers_lock); - return DSERR_ALLOCATED; - } - } - hr = DirectSoundCaptureDevice_Create(&device); if (hr != DS_OK) { WARN("DirectSoundCaptureDevice_Create failed\n");
1
0
0
0
Andrew Eikum : winmm: Don't count unused frames.
by Alexandre Julliard
27 Jul '13
27 Jul '13
Module: wine Branch: master Commit: 0627ddcf1528c98ad6b2a5efb56184b80a3b6198 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0627ddcf1528c98ad6b2a5efb…
Author: Andrew Eikum <aeikum(a)codeweavers.com> Date: Fri Jul 26 14:17:06 2013 -0500 winmm: Don't count unused frames. --- dlls/winmm/waveform.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/winmm/waveform.c b/dlls/winmm/waveform.c index 76d624a..752e64d 100644 --- a/dlls/winmm/waveform.c +++ b/dlls/winmm/waveform.c @@ -1901,7 +1901,7 @@ static void WID_PullData(WINMM_Device *device) if(packet > 0) WARN("losing %u frames\n", packet); - device->played_frames += packet_len; + device->played_frames += packet_len - packet; } exit:
1
0
0
0
← Newer
1
...
7
8
9
10
11
12
13
...
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