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
January 2011
----- 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
879 discussions
Start a n
N
ew thread
Nikolay Sivov : shell32: Fix interface leak while adding tree items.
by Alexandre Julliard
20 Jan '11
20 Jan '11
Module: wine Branch: master Commit: 99f0c0a16dbbabdb1047ea03f8d58a5f917d5ce4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=99f0c0a16dbbabdb1047ea03f…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Thu Jan 20 01:35:25 2011 +0300 shell32: Fix interface leak while adding tree items. --- dlls/shell32/brsfolder.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dlls/shell32/brsfolder.c b/dlls/shell32/brsfolder.c index 77c55c8..e990c61 100644 --- a/dlls/shell32/brsfolder.c +++ b/dlls/shell32/brsfolder.c @@ -414,7 +414,7 @@ static void FillTreeView( browse_info *info, IShellFolder * lpsf, SetCapture( hwnd ); SetCursor( LoadCursorA( 0, (LPSTR)IDC_WAIT ) ); - while (NOERROR == IEnumIDList_Next(lpe,1,&pidlTemp,&ulFetched)) + while (S_OK == IEnumIDList_Next(lpe,1,&pidlTemp,&ulFetched)) { ULONG ulAttrs = SFGAO_HASSUBFOLDER | SFGAO_FOLDER; IEnumIDList* pEnumIL = NULL; @@ -521,14 +521,18 @@ static LRESULT BrsFolder_Treeview_Expand( browse_info *info, NMTREEVIEWW *pnmtv if (!_ILIsEmpty(lptvid->lpi)) { r = IShellFolder_BindToObject( lptvid->lpsfParent, lptvid->lpi, 0, - &IID_IShellFolder, (LPVOID *)&lpsf2 ); + &IID_IShellFolder, (void**)&lpsf2 ); } else { lpsf2 = lptvid->lpsfParent; - r = IShellFolder_AddRef(lpsf2); + IShellFolder_AddRef(lpsf2); + r = S_OK; } if (SUCCEEDED(r)) + { FillTreeView( info, lpsf2, lptvid->lpifq, pnmtv->itemNew.hItem, lptvid->pEnumIL); + IShellFolder_Release( lpsf2 ); + } /* My Computer is already sorted and trying to do a simple text * sort will only mess things up */
1
0
0
0
Nikolay Sivov : oleaut32: Fix a stream leak on failure.
by Alexandre Julliard
20 Jan '11
20 Jan '11
Module: wine Branch: master Commit: 92dbc57a7705b8e4b7d2e6d4e5176e59dd456d16 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=92dbc57a7705b8e4b7d2e6d4e…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Thu Jan 20 00:38:16 2011 +0300 oleaut32: Fix a stream leak on failure. --- dlls/oleaut32/tmarshal.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/oleaut32/tmarshal.c b/dlls/oleaut32/tmarshal.c index 9d3d73e..6536bb4 100644 --- a/dlls/oleaut32/tmarshal.c +++ b/dlls/oleaut32/tmarshal.c @@ -153,6 +153,7 @@ _unmarshal_interface(marshal_state *buf, REFIID riid, LPUNKNOWN *pUnk) { hres = IStream_Write(pStm,buf->base+buf->curoff,xsize,&res); if (hres) { ERR("stream write %x\n",hres); + IStream_Release(pStm); return hres; } @@ -160,12 +161,14 @@ _unmarshal_interface(marshal_state *buf, REFIID riid, LPUNKNOWN *pUnk) { hres = IStream_Seek(pStm,seekto,SEEK_SET,&newpos); if (hres) { ERR("Failed Seek %x\n",hres); + IStream_Release(pStm); return hres; } hres = CoUnmarshalInterface(pStm,riid,(LPVOID*)pUnk); if (hres) { ERR("Unmarshalling interface %s failed with %x\n",debugstr_guid(riid),hres); + IStream_Release(pStm); return hres; }
1
0
0
0
Eric Pouech : kernel32: Fix prototype when no curses dev package is present .
by Alexandre Julliard
20 Jan '11
20 Jan '11
Module: wine Branch: master Commit: f3fe497b4f300191d548b5121d85b436293e7e7e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f3fe497b4f300191d548b5121…
Author: Eric Pouech <eric.pouech(a)orange.fr> Date: Wed Jan 19 22:34:35 2011 +0100 kernel32: Fix prototype when no curses dev package is present. --- dlls/kernel32/term.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/kernel32/term.c b/dlls/kernel32/term.c index 8111f0b..a7e18ec 100644 --- a/dlls/kernel32/term.c +++ b/dlls/kernel32/term.c @@ -365,5 +365,5 @@ int TERM_FillInputRecord(const char* in, size_t len, INPUT_RECORD* ir) #else BOOL TERM_Init(void) {return FALSE;} BOOL TERM_Exit(void) {return FALSE;} -int TERM_FillInputRecord(const char* in, INPUT_RECORD* ir) {return -1;} +int TERM_FillInputRecord(const char* in, size_t len, INPUT_RECORD* ir) {return -1;} #endif
1
0
0
0
Piotr Caban : mshtml: Added IObjectSafety stub.
by Alexandre Julliard
20 Jan '11
20 Jan '11
Module: wine Branch: master Commit: 52a1065f706c6d5534b6b13b86f78001c7a92194 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=52a1065f706c6d5534b6b13b8…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Wed Jan 19 21:31:43 2011 +0100 mshtml: Added IObjectSafety stub. --- dlls/mshtml/htmldoc.c | 3 ++ dlls/mshtml/mshtml.inf | 1 + dlls/mshtml/mshtml_private.h | 2 + dlls/mshtml/oleobj.c | 62 ++++++++++++++++++++++++++++++++++++++++++ dlls/mshtml/tests/dom.c | 3 ++ 5 files changed, 71 insertions(+), 0 deletions(-) diff --git a/dlls/mshtml/htmldoc.c b/dlls/mshtml/htmldoc.c index 12e0947..2b05ab9 100644 --- a/dlls/mshtml/htmldoc.c +++ b/dlls/mshtml/htmldoc.c @@ -1827,6 +1827,9 @@ static BOOL htmldoc_qi(HTMLDocument *This, REFIID riid, void **ppv) }else if(IsEqualGUID(&IID_IOleContainer, riid)) { TRACE("(%p)->(IID_IOleContainer %p)\n", This, ppv); *ppv = &This->IOleContainer_iface; + }else if(IsEqualGUID(&IID_IObjectSafety, riid)) { + TRACE("(%p)->(IID_IObjectSafety %p)\n", This, ppv); + *ppv = &This->IObjectSafety_iface; }else { return FALSE; } diff --git a/dlls/mshtml/mshtml.inf b/dlls/mshtml/mshtml.inf index b06743a..279b16c 100644 --- a/dlls/mshtml/mshtml.inf +++ b/dlls/mshtml/mshtml.inf @@ -66,6 +66,7 @@ HKLM,"Software\Microsoft\Internet Explorer\AboutURLs","PostNotCached",2,"res://m HKLM,"Software\Microsoft\Internet Explorer\AboutURLs","mozilla",2,"res://mshtml.dll/about.moz" HKLM,"Software\Microsoft\Internet Explorer\Default Behaviors","VML",, "CLSID:10072CEC-8CC1-11D1-986E-00A0C955B42E" HKLM,"Software\Microsoft\Internet Explorer\Default Behaviors","TIME",, "CLSID:476C391C-3E0D-11D2-B948-00C04FA32195" +HKLM,"Software\Microsoft\Internet Explorer\ActiveX Compatibility","Version",,"6.17" [WineGecko.Reg] diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h index 520061d..15348d5 100644 --- a/dlls/mshtml/mshtml_private.h +++ b/dlls/mshtml/mshtml_private.h @@ -24,6 +24,7 @@ #include "hlink.h" #include "perhist.h" #include "dispex.h" +#include "objsafe.h" #include "wine/list.h" #include "wine/unicode.h" @@ -368,6 +369,7 @@ struct HTMLDocument { ISupportErrorInfo ISupportErrorInfo_iface; IObjectWithSite IObjectWithSite_iface; IOleContainer IOleContainer_iface; + IObjectSafety IObjectSafety_iface; IUnknown *unk_impl; IDispatchEx *dispex; diff --git a/dlls/mshtml/oleobj.c b/dlls/mshtml/oleobj.c index 98fbdef..f8a84ac 100644 --- a/dlls/mshtml/oleobj.c +++ b/dlls/mshtml/oleobj.c @@ -802,6 +802,10 @@ static const IObjectWithSiteVtbl ObjectWithSiteVtbl = { ObjectWithSite_GetSite }; +/********************************************************** + * IOleContainer implementation + */ + static inline HTMLDocument *impl_from_IOleContainer(IOleContainer *iface) { return CONTAINING_RECORD(iface, HTMLDocument, IOleContainer_iface); @@ -856,6 +860,63 @@ static const IOleContainerVtbl OleContainerVtbl = { OleContainer_LockContainer }; +/********************************************************** + * IObjectSafety implementation + */ + +static inline HTMLDocument *impl_from_IObjectSafety(IObjectSafety *iface) +{ + return CONTAINING_RECORD(iface, HTMLDocument, IObjectSafety_iface); +} + +static HRESULT WINAPI ObjectSafety_QueryInterface(IObjectSafety *iface, REFIID riid, void **ppv) +{ + HTMLDocument *This = impl_from_IObjectSafety(iface); + return htmldoc_query_interface(This, riid, ppv); +} + +static ULONG WINAPI ObjectSafety_AddRef(IObjectSafety *iface) +{ + HTMLDocument *This = impl_from_IObjectSafety(iface); + return htmldoc_addref(This); +} + +static ULONG WINAPI ObjectSafety_Release(IObjectSafety *iface) +{ + HTMLDocument *This = impl_from_IObjectSafety(iface); + return htmldoc_release(This); +} + +static HRESULT WINAPI ObjectSafety_GetInterfaceSafetyOptions(IObjectSafety *iface, + REFIID riid, DWORD *pdwSupportedOptions, DWORD *pdwEnabledOptions) +{ + HTMLDocument *This = impl_from_IObjectSafety(iface); + FIXME("(%p)->(%s %p %p)\n", This, debugstr_guid(riid), pdwSupportedOptions, pdwEnabledOptions); + return E_NOTIMPL; +} + +static HRESULT WINAPI ObjectSafety_SetInterfaceSafetyOptions(IObjectSafety *iface, + REFIID riid, DWORD dwOptionSetMask, DWORD dwEnabledOptions) +{ + HTMLDocument *This = impl_from_IObjectSafety(iface); + FIXME("(%p)->(%s %x %x)\n", This, debugstr_guid(riid), dwOptionSetMask, dwEnabledOptions); + + if(IsEqualGUID(&IID_IPersistMoniker, riid) && + dwOptionSetMask==INTERFACESAFE_FOR_UNTRUSTED_DATA && + dwEnabledOptions==INTERFACESAFE_FOR_UNTRUSTED_DATA) + return S_OK; + + return E_NOTIMPL; +} + +static const IObjectSafetyVtbl ObjectSafetyVtbl = { + ObjectSafety_QueryInterface, + ObjectSafety_AddRef, + ObjectSafety_Release, + ObjectSafety_GetInterfaceSafetyOptions, + ObjectSafety_SetInterfaceSafetyOptions +}; + void HTMLDocument_LockContainer(HTMLDocumentObj *This, BOOL fLock) { IOleContainer *container; @@ -879,4 +940,5 @@ void HTMLDocument_OleObj_Init(HTMLDocument *This) This->IOleControl_iface.lpVtbl = &OleControlVtbl; This->IObjectWithSite_iface.lpVtbl = &ObjectWithSiteVtbl; This->IOleContainer_iface.lpVtbl = &OleContainerVtbl; + This->IObjectSafety_iface.lpVtbl = &ObjectSafetyVtbl; } diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c index 6601d2d..f753b14 100644 --- a/dlls/mshtml/tests/dom.c +++ b/dlls/mshtml/tests/dom.c @@ -32,6 +32,7 @@ #include "docobj.h" #include "dispex.h" #include "mshtml_test.h" +#include "objsafe.h" static const char doc_blank[] = "<html></html>"; static const char doc_str1[] = "<html><body>test</body></html>"; @@ -126,6 +127,7 @@ static const IID * const doc_node_iids[] = { &IID_IConnectionPointContainer, &IID_IInternetHostSecurityManager, &IID_IOleContainer, + &IID_IObjectSafety, NULL }; @@ -139,6 +141,7 @@ static const IID * const doc_obj_iids[] = { &IID_IConnectionPointContainer, &IID_ICustomDoc, &IID_IOleContainer, + &IID_IObjectSafety, NULL };
1
0
0
0
Juan Lang : crypt32: Ensure temporary string is NULL-terminated to avoid uninitialized memory access (valgrind).
by Alexandre Julliard
20 Jan '11
20 Jan '11
Module: wine Branch: master Commit: 862eab28201ca4e2c4705b112f9b5c0a0516522c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=862eab28201ca4e2c4705b112…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Wed Jan 19 12:21:24 2011 -0800 crypt32: Ensure temporary string is NULL-terminated to avoid uninitialized memory access (valgrind). --- dlls/crypt32/str.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/dlls/crypt32/str.c b/dlls/crypt32/str.c index 9d814df..81e9ec3 100644 --- a/dlls/crypt32/str.c +++ b/dlls/crypt32/str.c @@ -789,7 +789,7 @@ static BOOL CRYPT_EncodeValueWithType(DWORD dwCertEncodingType, LONG i; LPWSTR ptr; - nameValue.Value.pbData = CryptMemAlloc((value->end - value->start) * + nameValue.Value.pbData = CryptMemAlloc((value->end - value->start + 1) * sizeof(WCHAR)); if (!nameValue.Value.pbData) { @@ -803,6 +803,11 @@ static BOOL CRYPT_EncodeValueWithType(DWORD dwCertEncodingType, if (value->start[i] == '"') i++; } + /* The string is NULL terminated because of a quirk in encoding + * unicode names values: if the length is given as 0, the value is + * assumed to be a NULL-terminated string. + */ + *ptr = 0; nameValue.Value.cbData = (LPBYTE)ptr - nameValue.Value.pbData; } ret = CryptEncodeObjectEx(dwCertEncodingType, X509_UNICODE_NAME_VALUE,
1
0
0
0
Juan Lang : crypt32: Simplify a function.
by Alexandre Julliard
20 Jan '11
20 Jan '11
Module: wine Branch: master Commit: c3bc7f2cba431b80d2a0decaf48e341b120fc8b6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c3bc7f2cba431b80d2a0decaf…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Wed Jan 19 12:08:28 2011 -0800 crypt32: Simplify a function. --- dlls/crypt32/str.c | 57 +++++++++++++++++++++++---------------------------- 1 files changed, 26 insertions(+), 31 deletions(-) diff --git a/dlls/crypt32/str.c b/dlls/crypt32/str.c index e0e238b..9d814df 100644 --- a/dlls/crypt32/str.c +++ b/dlls/crypt32/str.c @@ -786,46 +786,41 @@ static BOOL CRYPT_EncodeValueWithType(DWORD dwCertEncodingType, if (value->end > value->start) { + LONG i; + LPWSTR ptr; + nameValue.Value.pbData = CryptMemAlloc((value->end - value->start) * sizeof(WCHAR)); if (!nameValue.Value.pbData) { SetLastError(ERROR_OUTOFMEMORY); - ret = FALSE; - } - } - if (ret) - { - if (value->end > value->start) - { - LONG i; - LPWSTR ptr = (LPWSTR)nameValue.Value.pbData; - - for (i = 0; i < value->end - value->start; i++) - { - *ptr++ = value->start[i]; - if (value->start[i] == '"') - i++; - } - nameValue.Value.cbData = (LPBYTE)ptr - nameValue.Value.pbData; + return FALSE; } - ret = CryptEncodeObjectEx(dwCertEncodingType, X509_UNICODE_NAME_VALUE, - &nameValue, CRYPT_ENCODE_ALLOC_FLAG, NULL, &output->pbData, - &output->cbData); - if (!ret && ppszError) + ptr = (LPWSTR)nameValue.Value.pbData; + for (i = 0; i < value->end - value->start; i++) { - if (type == CERT_RDN_NUMERIC_STRING && - GetLastError() == CRYPT_E_INVALID_NUMERIC_STRING) - *ppszError = value->start + output->cbData; - else if (type == CERT_RDN_PRINTABLE_STRING && - GetLastError() == CRYPT_E_INVALID_PRINTABLE_STRING) - *ppszError = value->start + output->cbData; - else if (type == CERT_RDN_IA5_STRING && - GetLastError() == CRYPT_E_INVALID_IA5_STRING) - *ppszError = value->start + output->cbData; + *ptr++ = value->start[i]; + if (value->start[i] == '"') + i++; } - CryptMemFree(nameValue.Value.pbData); + nameValue.Value.cbData = (LPBYTE)ptr - nameValue.Value.pbData; + } + ret = CryptEncodeObjectEx(dwCertEncodingType, X509_UNICODE_NAME_VALUE, + &nameValue, CRYPT_ENCODE_ALLOC_FLAG, NULL, &output->pbData, + &output->cbData); + if (!ret && ppszError) + { + if (type == CERT_RDN_NUMERIC_STRING && + GetLastError() == CRYPT_E_INVALID_NUMERIC_STRING) + *ppszError = value->start + output->cbData; + else if (type == CERT_RDN_PRINTABLE_STRING && + GetLastError() == CRYPT_E_INVALID_PRINTABLE_STRING) + *ppszError = value->start + output->cbData; + else if (type == CERT_RDN_IA5_STRING && + GetLastError() == CRYPT_E_INVALID_IA5_STRING) + *ppszError = value->start + output->cbData; } + CryptMemFree(nameValue.Value.pbData); return ret; }
1
0
0
0
Jacek Caban : wininet: Fixed race in SSL connection handling.
by Alexandre Julliard
20 Jan '11
20 Jan '11
Module: wine Branch: master Commit: 59bcbb2d8b4225fed0211326662d29eb7cf56117 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=59bcbb2d8b4225fed02113266…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Wed Jan 19 20:16:02 2011 +0100 wininet: Fixed race in SSL connection handling. --- dlls/wininet/netconnection.c | 56 +++++++++++++++++++++-------------------- 1 files changed, 29 insertions(+), 27 deletions(-) diff --git a/dlls/wininet/netconnection.c b/dlls/wininet/netconnection.c index 958abfb..cfc4e7c 100644 --- a/dlls/wininet/netconnection.c +++ b/dlls/wininet/netconnection.c @@ -368,7 +368,7 @@ static int netconn_secure_verify(int preverify_ok, X509_STORE_CTX *ctx) DWORD NETCON_init(WININET_NETCONNECTION *connection, BOOL useSSL) { - connection->useSSL = FALSE; + connection->useSSL = useSSL; connection->socketFD = -1; if (useSSL) { @@ -544,10 +544,7 @@ void NETCON_unload(void) BOOL NETCON_connected(WININET_NETCONNECTION *connection) { - if (connection->socketFD == -1) - return FALSE; - else - return TRUE; + return connection->socketFD != -1; } /* translate a unix error code into a winsock one */ @@ -625,7 +622,7 @@ DWORD NETCON_create(WININET_NETCONNECTION *connection, int domain, int type, int protocol) { #ifdef SONAME_LIBSSL - if (connection->useSSL) + if (connection->ssl_s) return ERROR_NOT_SUPPORTED; #endif @@ -647,13 +644,11 @@ DWORD NETCON_close(WININET_NETCONNECTION *connection) if (!NETCON_connected(connection)) return ERROR_SUCCESS; #ifdef SONAME_LIBSSL - if (connection->useSSL) + if (connection->ssl_s) { pSSL_shutdown(connection->ssl_s); pSSL_free(connection->ssl_s); connection->ssl_s = NULL; - - connection->useSSL = FALSE; } #endif @@ -671,26 +666,26 @@ DWORD NETCON_close(WININET_NETCONNECTION *connection) */ DWORD NETCON_secure_connect(WININET_NETCONNECTION *connection, LPWSTR hostname) { + void *ssl_s; DWORD res = ERROR_NOT_SUPPORTED; #ifdef SONAME_LIBSSL /* can't connect if we are already connected */ - if (connection->useSSL) + if (connection->ssl_s) { ERR("already connected\n"); return ERROR_INTERNET_CANNOT_CONNECT; } - connection->ssl_s = pSSL_new(ctx); - if (!connection->ssl_s) + ssl_s = pSSL_new(ctx); + if (!ssl_s) { ERR("SSL_new failed: %s\n", pERR_error_string(pERR_get_error(), 0)); - res = ERROR_OUTOFMEMORY; - goto fail; + return ERROR_OUTOFMEMORY; } - if (!pSSL_set_fd(connection->ssl_s, connection->socketFD)) + if (!pSSL_set_fd(ssl_s, connection->socketFD)) { ERR("SSL_set_fd failed: %s\n", pERR_error_string(pERR_get_error(), 0)); @@ -698,38 +693,37 @@ DWORD NETCON_secure_connect(WININET_NETCONNECTION *connection, LPWSTR hostname) goto fail; } - if (!pSSL_set_ex_data(connection->ssl_s, hostname_idx, hostname)) + if (!pSSL_set_ex_data(ssl_s, hostname_idx, hostname)) { ERR("SSL_set_ex_data failed: %s\n", pERR_error_string(pERR_get_error(), 0)); res = ERROR_INTERNET_SECURITY_CHANNEL_ERROR; goto fail; } - if (!pSSL_set_ex_data(connection->ssl_s, conn_idx, connection)) + if (!pSSL_set_ex_data(ssl_s, conn_idx, connection)) { ERR("SSL_set_ex_data failed: %s\n", pERR_error_string(pERR_get_error(), 0)); res = ERROR_INTERNET_SECURITY_CHANNEL_ERROR; goto fail; } - if (pSSL_connect(connection->ssl_s) <= 0) + if (pSSL_connect(ssl_s) <= 0) { - res = (DWORD_PTR)pSSL_get_ex_data(connection->ssl_s, error_idx); + res = (DWORD_PTR)pSSL_get_ex_data(ssl_s, error_idx); if (!res) res = ERROR_INTERNET_SECURITY_CHANNEL_ERROR; ERR("SSL_connect failed: %d\n", res); goto fail; } - connection->useSSL = TRUE; + connection->ssl_s = ssl_s; return ERROR_SUCCESS; fail: - if (connection->ssl_s) + if (ssl_s) { - pSSL_shutdown(connection->ssl_s); - pSSL_free(connection->ssl_s); - connection->ssl_s = NULL; + pSSL_shutdown(ssl_s); + pSSL_free(ssl_s); } #endif return res; @@ -776,6 +770,10 @@ DWORD NETCON_send(WININET_NETCONNECTION *connection, const void *msg, size_t len else { #ifdef SONAME_LIBSSL + if(!connection->ssl_s) { + FIXME("not connected\n"); + return ERROR_NOT_SUPPORTED; + } if (flags) FIXME("SSL_write doesn't support any flags (%08x)\n", flags); *sent = pSSL_write(connection->ssl_s, msg, len); @@ -810,6 +808,10 @@ DWORD NETCON_recv(WININET_NETCONNECTION *connection, void *buf, size_t len, int else { #ifdef SONAME_LIBSSL + if(!connection->ssl_s) { + FIXME("not connected\n"); + return ERROR_NOT_SUPPORTED; + } *recvd = pSSL_read(connection->ssl_s, buf, len); /* Check if EOF was received */ @@ -852,7 +854,7 @@ BOOL NETCON_query_data_available(WININET_NETCONNECTION *connection, DWORD *avail else { #ifdef SONAME_LIBSSL - *available = pSSL_pending(connection->ssl_s); + *available = connection->ssl_s ? pSSL_pending(connection->ssl_s) : 0; #endif } return TRUE; @@ -864,7 +866,7 @@ LPCVOID NETCON_GetCert(WININET_NETCONNECTION *connection) X509* cert; LPCVOID r = NULL; - if (!connection->useSSL) + if (!connection->ssl_s) return NULL; cert = pSSL_get_peer_certificate(connection->ssl_s); @@ -885,7 +887,7 @@ int NETCON_GetCipherStrength(WININET_NETCONNECTION *connection) #endif int bits = 0; - if (!connection->useSSL) + if (!connection->ssl_s) return 0; cipher = pSSL_get_current_cipher(connection->ssl_s); if (!cipher)
1
0
0
0
Henri Verbeet : wined3d: Store a pointer to an array of IWineD3DSwapChainImpl pointers in the device .
by Alexandre Julliard
20 Jan '11
20 Jan '11
Module: wine Branch: master Commit: 227efbbf652ead4a205e5a86c5cd5b917b161306 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=227efbbf652ead4a205e5a86c…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Jan 19 19:20:12 2011 +0100 wined3d: Store a pointer to an array of IWineD3DSwapChainImpl pointers in the device. --- dlls/wined3d/context.c | 4 ++-- dlls/wined3d/device.c | 37 ++++++++++++++++++++++--------------- dlls/wined3d/surface.c | 2 +- dlls/wined3d/surface_gdi.c | 2 +- dlls/wined3d/wined3d_private.h | 2 +- 5 files changed, 27 insertions(+), 20 deletions(-) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index a438a88..5ecd748 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -1877,7 +1877,7 @@ static struct wined3d_context *FindContext(IWineD3DDeviceImpl *This, IWineD3DSur } else { - IWineD3DSwapChainImpl *swapchain = (IWineD3DSwapChainImpl *)This->swapchains[0]; + IWineD3DSwapChainImpl *swapchain = This->swapchains[0]; if (swapchain->back_buffers) target = swapchain->back_buffers[0]; else target = swapchain->front_buffer; } @@ -1904,7 +1904,7 @@ static struct wined3d_context *FindContext(IWineD3DDeviceImpl *This, IWineD3DSur if (current_context && current_context->swapchain->device == This) context = current_context; else - context = swapchain_get_context((IWineD3DSwapChainImpl *)This->swapchains[0]); + context = swapchain_get_context(This->swapchains[0]); } context_validate(context); diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index a099c90..d375ca3 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -1305,8 +1305,9 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetSwapChain(IWineD3DDevice *iface, U IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface; TRACE("(%p) : swapchain %d\n", This, iSwapChain); - if(iSwapChain < This->NumberOfSwapChains) { - *pSwapChain = This->swapchains[iSwapChain]; + if (iSwapChain < This->NumberOfSwapChains) + { + *pSwapChain = (IWineD3DSwapChain *)This->swapchains[iSwapChain]; IWineD3DSwapChain_AddRef(*pSwapChain); TRACE("(%p) returning %p\n", This, *pSwapChain); return WINED3D_OK; @@ -1939,12 +1940,13 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface, } This->NumberOfSwapChains = 1; - This->swapchains = HeapAlloc(GetProcessHeap(), 0, This->NumberOfSwapChains * sizeof(IWineD3DSwapChain *)); - if(!This->swapchains) { + This->swapchains = HeapAlloc(GetProcessHeap(), 0, This->NumberOfSwapChains * sizeof(*This->swapchains)); + if (!This->swapchains) + { ERR("Out of memory!\n"); goto err_out; } - This->swapchains[0] = (IWineD3DSwapChain *) swapchain; + This->swapchains[0] = swapchain; if (swapchain->back_buffers && swapchain->back_buffers[0]) { @@ -2079,12 +2081,13 @@ static HRESULT WINAPI IWineD3DDeviceImpl_InitGDI(IWineD3DDevice *iface, } This->NumberOfSwapChains = 1; - This->swapchains = HeapAlloc(GetProcessHeap(), 0, This->NumberOfSwapChains * sizeof(IWineD3DSwapChain *)); - if(!This->swapchains) { + This->swapchains = HeapAlloc(GetProcessHeap(), 0, This->NumberOfSwapChains * sizeof(*This->swapchains)); + if (!This->swapchains) + { ERR("Out of memory!\n"); goto err_out; } - This->swapchains[0] = (IWineD3DSwapChain *) swapchain; + This->swapchains[0] = swapchain; return WINED3D_OK; err_out: @@ -2227,9 +2230,11 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Uninit3D(IWineD3DDevice *iface, context_release(context); - for(i=0; i < This->NumberOfSwapChains; i++) { - TRACE("Releasing the implicit swapchain %d\n", i); - if (D3DCB_DestroySwapChain(This->swapchains[i]) > 0) { + for (i = 0; i < This->NumberOfSwapChains; ++i) + { + TRACE("Releasing the implicit swapchain %u.\n", i); + if (D3DCB_DestroySwapChain((IWineD3DSwapChain *)This->swapchains[i]) > 0) + { FIXME("(%p) Something's still holding the implicit swapchain\n", This); } } @@ -2255,9 +2260,11 @@ static HRESULT WINAPI IWineD3DDeviceImpl_UninitGDI(IWineD3DDevice *iface, D3DCB_ IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *) iface; unsigned int i; - for(i=0; i < This->NumberOfSwapChains; i++) { - TRACE("Releasing the implicit swapchain %d\n", i); - if (D3DCB_DestroySwapChain(This->swapchains[i]) > 0) { + for (i = 0; i < This->NumberOfSwapChains; ++i) + { + TRACE("Releasing the implicit swapchain %u.\n", i); + if (D3DCB_DestroySwapChain((IWineD3DSwapChain *)This->swapchains[i]) > 0) + { FIXME("(%p) Something's still holding the implicit swapchain\n", This); } } @@ -5820,7 +5827,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetDepthStencilSurface(IWineD3DDevice * if (This->depth_stencil) { - if (((IWineD3DSwapChainImpl *)This->swapchains[0])->presentParms.Flags & WINED3DPRESENTFLAG_DISCARD_DEPTHSTENCIL + if (This->swapchains[0]->presentParms.Flags & WINED3DPRESENTFLAG_DISCARD_DEPTHSTENCIL || This->depth_stencil->flags & SFLAG_DISCARD) { surface_modify_ds_location(This->depth_stencil, SFLAG_DS_DISCARDED, diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 7e19a02..cce1a2f 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -2014,7 +2014,7 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_GetDC(IWineD3DSurface *iface, HDC *pHD } else { IWineD3DSurfaceImpl *dds_primary; IWineD3DSwapChainImpl *swapchain; - swapchain = (IWineD3DSwapChainImpl *)This->resource.device->swapchains[0]; + swapchain = This->resource.device->swapchains[0]; dds_primary = swapchain->front_buffer; if (dds_primary && dds_primary->palette) pal = dds_primary->palette->palents; diff --git a/dlls/wined3d/surface_gdi.c b/dlls/wined3d/surface_gdi.c index 013ff2c..d7a6f4a 100644 --- a/dlls/wined3d/surface_gdi.c +++ b/dlls/wined3d/surface_gdi.c @@ -266,7 +266,7 @@ static HRESULT WINAPI IWineGDISurfaceImpl_GetDC(IWineD3DSurface *iface, HDC *pHD } else { IWineD3DSurfaceImpl *dds_primary; IWineD3DSwapChainImpl *swapchain; - swapchain = (IWineD3DSwapChainImpl *)This->resource.device->swapchains[0]; + swapchain = This->resource.device->swapchains[0]; dds_primary = swapchain->front_buffer; if (dds_primary && dds_primary->palette) pal = dds_primary->palette->palents; diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index 819a6ab..baf009f 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -1707,7 +1707,7 @@ struct IWineD3DDeviceImpl WINED3DDEVTYPE devType; HWND focus_window; - IWineD3DSwapChain **swapchains; + IWineD3DSwapChainImpl **swapchains; UINT NumberOfSwapChains; struct list resources; /* a linked list to track resources created by the device */
1
0
0
0
Henri Verbeet : wined3d: Move swapchain context retrieval to swapchain.c.
by Alexandre Julliard
20 Jan '11
20 Jan '11
Module: wine Branch: master Commit: 6f95f05aaf31e06267446a9aa8b9ae81c35c8460 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6f95f05aaf31e06267446a9aa…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Jan 19 19:20:11 2011 +0100 wined3d: Move swapchain context retrieval to swapchain.c. --- dlls/wined3d/context.c | 39 ++++----------------------------------- dlls/wined3d/swapchain.c | 17 ++++++++++++++++- dlls/wined3d/wined3d_private.h | 2 +- 3 files changed, 21 insertions(+), 37 deletions(-) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index 2265188..a438a88 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -1859,32 +1859,10 @@ static void SetupForBlit(IWineD3DDeviceImpl *This, struct wined3d_context *conte This->frag_pipe->enable_extension(FALSE); } -/***************************************************************************** - * findThreadContextForSwapChain - * - * Searches a swapchain for all contexts and picks one for the thread tid. - * If none can be found the swapchain is requested to create a new context - * - *****************************************************************************/ -static struct wined3d_context *findThreadContextForSwapChain(struct IWineD3DSwapChainImpl *swapchain, DWORD tid) -{ - unsigned int i; - - for (i = 0; i < swapchain->num_contexts; ++i) - { - if (swapchain->context[i]->tid == tid) - return swapchain->context[i]; - } - - /* Create a new context for the thread */ - return swapchain_create_context_for_thread(swapchain); -} - /* Do not call while under the GL lock. */ static struct wined3d_context *FindContext(IWineD3DDeviceImpl *This, IWineD3DSurfaceImpl *target) { struct wined3d_context *current_context = context_get_current(); - DWORD tid = GetCurrentThreadId(); struct wined3d_context *context; if (current_context && current_context->destroyed) current_context = NULL; @@ -1915,27 +1893,18 @@ static struct wined3d_context *FindContext(IWineD3DDeviceImpl *This, IWineD3DSur { TRACE("Rendering onscreen\n"); - context = findThreadContextForSwapChain(target->container.u.swapchain, tid); + context = swapchain_get_context(target->container.u.swapchain); } else { TRACE("Rendering offscreen\n"); - /* Stay with the currently active context. */ + /* Stay with the current context if possible. Otherwise use the + * context for the primary swapchain. */ if (current_context && current_context->swapchain->device == This) - { context = current_context; - } else - { - /* This may happen if the app jumps straight into offscreen rendering - * Start using the context of the primary swapchain. tid == 0 is no problem - * for findThreadContextForSwapChain. - * - * Can also happen on thread switches - in that case findThreadContextForSwapChain - * is perfect to call. */ - context = findThreadContextForSwapChain((IWineD3DSwapChainImpl *)This->swapchains[0], tid); - } + context = swapchain_get_context((IWineD3DSwapChainImpl *)This->swapchains[0]); } context_validate(context); diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c index 430c751..f613dfe 100644 --- a/dlls/wined3d/swapchain.c +++ b/dlls/wined3d/swapchain.c @@ -783,7 +783,7 @@ err: } /* Do not call while under the GL lock. */ -struct wined3d_context *swapchain_create_context_for_thread(IWineD3DSwapChainImpl *swapchain) +static struct wined3d_context *swapchain_create_context(struct IWineD3DSwapChainImpl *swapchain) { struct wined3d_context **newArray; struct wined3d_context *ctx; @@ -813,6 +813,21 @@ struct wined3d_context *swapchain_create_context_for_thread(IWineD3DSwapChainImp return ctx; } +struct wined3d_context *swapchain_get_context(struct IWineD3DSwapChainImpl *swapchain) +{ + DWORD tid = GetCurrentThreadId(); + unsigned int i; + + for (i = 0; i < swapchain->num_contexts; ++i) + { + if (swapchain->context[i]->tid == tid) + return swapchain->context[i]; + } + + /* Create a new context for the thread */ + return swapchain_create_context(swapchain); +} + void get_drawable_size_swapchain(struct wined3d_context *context, UINT *width, UINT *height) { /* The drawable size of an onscreen drawable is the surface size. diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index 7ea5067..819a6ab 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -2634,7 +2634,7 @@ HRESULT WINAPI IWineD3DBaseSwapChainImpl_SetGammaRamp(IWineD3DSwapChain *iface, HRESULT WINAPI IWineD3DBaseSwapChainImpl_GetGammaRamp(IWineD3DSwapChain *iface, WINED3DGAMMARAMP *pRamp) DECLSPEC_HIDDEN; -struct wined3d_context *swapchain_create_context_for_thread(struct IWineD3DSwapChainImpl *swapchain) DECLSPEC_HIDDEN; +struct wined3d_context *swapchain_get_context(struct IWineD3DSwapChainImpl *swapchain) DECLSPEC_HIDDEN; HRESULT swapchain_init(IWineD3DSwapChainImpl *swapchain, WINED3DSURFTYPE surface_type, IWineD3DDeviceImpl *device, WINED3DPRESENT_PARAMETERS *present_parameters, void *parent) DECLSPEC_HIDDEN;
1
0
0
0
Henri Verbeet : d3d8/tests: Fix test_ApplyStateBlock() (Valgrind).
by Alexandre Julliard
20 Jan '11
20 Jan '11
Module: wine Branch: master Commit: 3d64b44c8c4ab172d4db67b6d3ffd8549687e7ba URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3d64b44c8c4ab172d4db67b6d…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Jan 19 19:20:10 2011 +0100 d3d8/tests: Fix test_ApplyStateBlock() (Valgrind). --- dlls/d3d8/tests/device.c | 27 +++++++++++++-------------- 1 files changed, 13 insertions(+), 14 deletions(-) diff --git a/dlls/d3d8/tests/device.c b/dlls/d3d8/tests/device.c index e4aabf4..edcb72b 100644 --- a/dlls/d3d8/tests/device.c +++ b/dlls/d3d8/tests/device.c @@ -2084,33 +2084,32 @@ static void test_ApplyStateBlock(void) goto cleanup; } - IDirect3DDevice8_CreateStateBlock(device, D3DSBT_ALL, &token); - ok(token !=0, "received null token\n"); - IDirect3DDevice8_BeginStateBlock(device); IDirect3DDevice8_SetRenderState(device, D3DRS_ZENABLE, TRUE); IDirect3DDevice8_EndStateBlock(device, &token); + ok(token, "Received zero stateblock handle.\n"); IDirect3DDevice8_SetRenderState(device, D3DRS_ZENABLE, FALSE); hr = IDirect3DDevice8_GetRenderState(device, D3DRS_ZENABLE, &received); - ok(hr==D3D_OK, "Expected= D3D_OK, Got= %#x\n", hr); - ok(received==FALSE, "Expected = TRUE, received FALSE\n"); + ok(hr == D3D_OK, "Expected D3D_OK, received %#x.\n", hr); + ok(!received, "Expected = FALSE, received TRUE.\n"); IDirect3DDevice8_ApplyStateBlock(device, 0); - ok(hr == D3D_OK, "Expected= D3D_OK, Got= %#x\n", hr); + ok(hr == D3D_OK, "Expected D3D_OK, received %#x.\n", hr); hr = IDirect3DDevice8_GetRenderState(device, D3DRS_ZENABLE, &received); - ok(hr==D3D_OK, "Expected= D3D_OK, Got= %#x\n", hr); - ok(received==FALSE, "Expected = TRUE, received FALSE\n"); + ok(hr == D3D_OK, "Expected D3D_OK, received %#x.\n", hr); + ok(!received, "Expected FALSE, received TRUE.\n"); IDirect3DDevice8_ApplyStateBlock(device, token); - ok(hr == D3D_OK, "Expected= D3D_OK, Got= %#x\n", hr); + ok(hr == D3D_OK, "Expected D3D_OK, received %#x.\n", hr); hr = IDirect3DDevice8_GetRenderState(device, D3DRS_ZENABLE, &received); - ok(hr==D3D_OK, "Expected= D3D_OK, Got= %#x\n", hr); - ok(received==TRUE, "Expected = TRUE, received FALSE\n"); + ok(hr == D3D_OK, "Expected D3D_OK, received %#x.\n", hr); + ok(received, "Expected TRUE, received FALSE.\n"); - cleanup: - if(device) IDirect3DDevice8_Release(device); - if(d3d8) IDirect3D8_Release(d3d8); + IDirect3DDevice8_DeleteStateBlock(device, token); + IDirect3DDevice8_Release(device); +cleanup: + if (d3d8) IDirect3D8_Release(d3d8); } START_TEST(device)
1
0
0
0
← Newer
1
...
27
28
29
30
31
32
33
...
88
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Results per page:
10
25
50
100
200