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
July
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
December 2010
----- 2025 -----
July 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
1099 discussions
Start a n
N
ew thread
Alexandre Julliard : avifil32: Convert dll registration to the IRegistrar mechanism.
by Alexandre Julliard
08 Dec '10
08 Dec '10
Module: wine Branch: master Commit: 735d075b7fc93ad8f34eb57a8fd4736f99a35c41 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=735d075b7fc93ad8f34eb57a8…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Dec 8 11:51:15 2010 +0100 avifil32: Convert dll registration to the IRegistrar mechanism. --- dlls/avifil32/Makefile.in | 3 +- dlls/avifil32/avifil32.idl | 54 +++++ dlls/avifil32/avifile.rgs | 11 + dlls/avifil32/factory.c | 17 ++ dlls/avifil32/regsvr.c | 516 -------------------------------------------- dlls/avifil32/rsrc.rc | 3 + 6 files changed, 87 insertions(+), 517 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=735d075b7fc93ad8f34eb…
1
0
0
0
Michael Stefaniuc : winealsa.drv: Standardize the COM usage in dsoutput.c.
by Alexandre Julliard
08 Dec '10
08 Dec '10
Module: wine Branch: master Commit: 820f37698542ff573c3dd5b361903aa20a8952ee URL:
http://source.winehq.org/git/wine.git/?a=commit;h=820f37698542ff573c3dd5b36…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Wed Dec 8 01:09:45 2010 +0100 winealsa.drv: Standardize the COM usage in dsoutput.c. --- dlls/winealsa.drv/dsoutput.c | 52 +++++++++++++++++++++++++----------------- 1 files changed, 31 insertions(+), 21 deletions(-) diff --git a/dlls/winealsa.drv/dsoutput.c b/dlls/winealsa.drv/dsoutput.c index 8a277de..98fb5bb 100644 --- a/dlls/winealsa.drv/dsoutput.c +++ b/dlls/winealsa.drv/dsoutput.c @@ -68,7 +68,7 @@ typedef struct IDsDriverBufferImpl IDsDriverBufferImpl; struct IDsDriverImpl { /* IUnknown fields */ - const IDsDriverVtbl *lpVtbl; + IDsDriver IDsDriver_iface; LONG ref; /* IDsDriverImpl fields */ @@ -78,7 +78,7 @@ struct IDsDriverImpl struct IDsDriverBufferImpl { - const IDsDriverBufferVtbl *lpVtbl; + IDsDriverBuffer IDsDriverBuffer_iface; LONG ref; IDsDriverImpl* drv; @@ -93,6 +93,16 @@ struct IDsDriverBufferImpl snd_pcm_uframes_t mmap_buflen_frames, mmap_pos, mmap_commitahead; }; +static inline IDsDriverImpl *impl_from_IDsDriver(IDsDriver *iface) +{ + return CONTAINING_RECORD(iface, IDsDriverImpl, IDsDriver_iface); +} + +static inline IDsDriverBufferImpl *impl_from_IDsDriverBuffer(IDsDriverBuffer *iface) +{ + return CONTAINING_RECORD(iface, IDsDriverBufferImpl, IDsDriverBuffer_iface); +} + /** Fill buffers, for starting and stopping * Alsa won't start playing until everything is filled up * This also updates mmap_pos @@ -281,7 +291,7 @@ static HRESULT WINAPI IDsDriverBufferImpl_QueryInterface(PIDSDRIVERBUFFER iface, static ULONG WINAPI IDsDriverBufferImpl_AddRef(PIDSDRIVERBUFFER iface) { - IDsDriverBufferImpl *This = (IDsDriverBufferImpl *)iface; + IDsDriverBufferImpl *This = impl_from_IDsDriverBuffer(iface); ULONG refCount = InterlockedIncrement(&This->ref); TRACE("(%p)->(ref before=%u)\n",This, refCount - 1); @@ -291,7 +301,7 @@ static ULONG WINAPI IDsDriverBufferImpl_AddRef(PIDSDRIVERBUFFER iface) static ULONG WINAPI IDsDriverBufferImpl_Release(PIDSDRIVERBUFFER iface) { - IDsDriverBufferImpl *This = (IDsDriverBufferImpl *)iface; + IDsDriverBufferImpl *This = impl_from_IDsDriverBuffer(iface); ULONG refCount = InterlockedDecrement(&This->ref); TRACE("(%p)->(ref before=%u)\n",This, refCount + 1); @@ -324,7 +334,7 @@ static HRESULT WINAPI IDsDriverBufferImpl_Lock(PIDSDRIVERBUFFER iface, DWORD dwWritePosition,DWORD dwWriteLen, DWORD dwFlags) { - IDsDriverBufferImpl *This = (IDsDriverBufferImpl *)iface; + IDsDriverBufferImpl *This = impl_from_IDsDriverBuffer(iface); snd_pcm_uframes_t writepos; TRACE("%d bytes from %d\n", dwWriteLen, dwWritePosition); @@ -382,7 +392,7 @@ static HRESULT WINAPI IDsDriverBufferImpl_Unlock(PIDSDRIVERBUFFER iface, LPVOID pvAudio1,DWORD dwLen1, LPVOID pvAudio2,DWORD dwLen2) { - IDsDriverBufferImpl *This = (IDsDriverBufferImpl *)iface; + IDsDriverBufferImpl *This = impl_from_IDsDriverBuffer(iface); snd_pcm_uframes_t writepos; if (!dwLen1) @@ -569,7 +579,7 @@ static HRESULT SetFormat(IDsDriverBufferImpl *This, LPWAVEFORMATEX pwfx) static HRESULT WINAPI IDsDriverBufferImpl_SetFormat(PIDSDRIVERBUFFER iface, LPWAVEFORMATEX pwfx) { - IDsDriverBufferImpl *This = (IDsDriverBufferImpl *)iface; + IDsDriverBufferImpl *This = impl_from_IDsDriverBuffer(iface); HRESULT hr = S_OK; TRACE("(%p, %p)\n", iface, pwfx); @@ -594,7 +604,7 @@ static HRESULT WINAPI IDsDriverBufferImpl_SetFrequency(PIDSDRIVERBUFFER iface, D static HRESULT WINAPI IDsDriverBufferImpl_SetVolumePan(PIDSDRIVERBUFFER iface, PDSVOLUMEPAN pVolPan) { - IDsDriverBufferImpl *This = (IDsDriverBufferImpl *)iface; + IDsDriverBufferImpl *This = impl_from_IDsDriverBuffer(iface); FIXME("(%p,%p): stub\n",This,pVolPan); /* TODO: Bring volume control back */ return DS_OK; @@ -611,7 +621,7 @@ static HRESULT WINAPI IDsDriverBufferImpl_SetPosition(PIDSDRIVERBUFFER iface, DW static HRESULT WINAPI IDsDriverBufferImpl_GetPosition(PIDSDRIVERBUFFER iface, LPDWORD lpdwPlay, LPDWORD lpdwWrite) { - IDsDriverBufferImpl *This = (IDsDriverBufferImpl *)iface; + IDsDriverBufferImpl *This = impl_from_IDsDriverBuffer(iface); snd_pcm_uframes_t hw_pptr, hw_wptr; snd_pcm_state_t state; @@ -676,7 +686,7 @@ static HRESULT WINAPI IDsDriverBufferImpl_GetPosition(PIDSDRIVERBUFFER iface, static HRESULT WINAPI IDsDriverBufferImpl_Play(PIDSDRIVERBUFFER iface, DWORD dwRes1, DWORD dwRes2, DWORD dwFlags) { - IDsDriverBufferImpl *This = (IDsDriverBufferImpl *)iface; + IDsDriverBufferImpl *This = impl_from_IDsDriverBuffer(iface); TRACE("(%p,%x,%x,%x)\n",iface,dwRes1,dwRes2,dwFlags); /* **** */ @@ -692,7 +702,7 @@ static HRESULT WINAPI IDsDriverBufferImpl_Stop(PIDSDRIVERBUFFER iface) const snd_pcm_channel_area_t *areas; snd_pcm_uframes_t avail; snd_pcm_format_t format; - IDsDriverBufferImpl *This = (IDsDriverBufferImpl *)iface; + IDsDriverBufferImpl *This = impl_from_IDsDriverBuffer(iface); TRACE("(%p)\n",iface); /* **** */ @@ -745,7 +755,7 @@ static HRESULT WINAPI IDsDriverImpl_QueryInterface(PIDSDRIVER iface, REFIID riid static ULONG WINAPI IDsDriverImpl_AddRef(PIDSDRIVER iface) { - IDsDriverImpl *This = (IDsDriverImpl *)iface; + IDsDriverImpl *This = impl_from_IDsDriver(iface); ULONG refCount = InterlockedIncrement(&This->ref); TRACE("(%p)->(ref before=%u)\n",This, refCount - 1); @@ -755,7 +765,7 @@ static ULONG WINAPI IDsDriverImpl_AddRef(PIDSDRIVER iface) static ULONG WINAPI IDsDriverImpl_Release(PIDSDRIVER iface) { - IDsDriverImpl *This = (IDsDriverImpl *)iface; + IDsDriverImpl *This = impl_from_IDsDriver(iface); ULONG refCount = InterlockedDecrement(&This->ref); TRACE("(%p)->(ref before=%u)\n",This, refCount + 1); @@ -769,7 +779,7 @@ static ULONG WINAPI IDsDriverImpl_Release(PIDSDRIVER iface) static HRESULT WINAPI IDsDriverImpl_GetDriverDesc(PIDSDRIVER iface, PDSDRIVERDESC pDesc) { - IDsDriverImpl *This = (IDsDriverImpl *)iface; + IDsDriverImpl *This = impl_from_IDsDriver(iface); TRACE("(%p,%p)\n",iface,pDesc); *pDesc = WOutDev[This->wDevID].ds_desc; pDesc->dwFlags = DSDDESC_DONTNEEDSECONDARYLOCK | DSDDESC_DONTNEEDWRITELEAD; @@ -790,7 +800,7 @@ static HRESULT WINAPI IDsDriverImpl_GetDriverDesc(PIDSDRIVER iface, PDSDRIVERDES static HRESULT WINAPI IDsDriverImpl_Open(PIDSDRIVER iface) { HRESULT hr = S_OK; - IDsDriverImpl *This = (IDsDriverImpl *)iface; + IDsDriverImpl *This = impl_from_IDsDriver(iface); int err=0; snd_pcm_t *pcm = NULL; snd_pcm_hw_params_t *hw_params; @@ -833,14 +843,14 @@ static HRESULT WINAPI IDsDriverImpl_Open(PIDSDRIVER iface) static HRESULT WINAPI IDsDriverImpl_Close(PIDSDRIVER iface) { - IDsDriverImpl *This = (IDsDriverImpl *)iface; + IDsDriverImpl *This = impl_from_IDsDriver(iface); TRACE("(%p) stub, harmless\n",This); return DS_OK; } static HRESULT WINAPI IDsDriverImpl_GetCaps(PIDSDRIVER iface, PDSDRIVERCAPS pCaps) { - IDsDriverImpl *This = (IDsDriverImpl *)iface; + IDsDriverImpl *This = impl_from_IDsDriver(iface); TRACE("(%p,%p)\n",iface,pCaps); *pCaps = WOutDev[This->wDevID].ds_caps; return DS_OK; @@ -853,7 +863,7 @@ static HRESULT WINAPI IDsDriverImpl_CreateSoundBuffer(PIDSDRIVER iface, LPBYTE *ppbBuffer, LPVOID *ppvObj) { - IDsDriverImpl *This = (IDsDriverImpl *)iface; + IDsDriverImpl *This = impl_from_IDsDriver(iface); IDsDriverBufferImpl** ippdsdb = (IDsDriverBufferImpl**)ppvObj; HRESULT err; @@ -876,7 +886,7 @@ static HRESULT WINAPI IDsDriverImpl_CreateSoundBuffer(PIDSDRIVER iface, HeapFree(GetProcessHeap(), 0, (*ippdsdb)->hw_params); return DSERR_OUTOFMEMORY; } - (*ippdsdb)->lpVtbl = &dsdbvt; + (*ippdsdb)->IDsDriverBuffer_iface.lpVtbl = &dsdbvt; (*ippdsdb)->ref = 1; (*ippdsdb)->drv = This; InitializeCriticalSection(&(*ippdsdb)->pcm_crst); @@ -912,7 +922,7 @@ static HRESULT WINAPI IDsDriverImpl_DuplicateSoundBuffer(PIDSDRIVER iface, PIDSDRIVERBUFFER pBuffer, LPVOID *ppvObj) { - IDsDriverImpl *This = (IDsDriverImpl *)iface; + IDsDriverImpl *This = impl_from_IDsDriver(iface); FIXME("(%p,%p): stub\n",This,pBuffer); return DSERR_INVALIDCALL; } @@ -939,7 +949,7 @@ DWORD wodDsCreate(UINT wDevID, PIDSDRIVER* drv) *idrv = HeapAlloc(GetProcessHeap(),0,sizeof(IDsDriverImpl)); if (!*idrv) return MMSYSERR_NOMEM; - (*idrv)->lpVtbl = &dsdvt; + (*idrv)->IDsDriver_iface.lpVtbl = &dsdvt; (*idrv)->ref = 1; (*idrv)->wDevID = wDevID;
1
0
0
0
Michael Stefaniuc : wineoss.drv: Standardize the COM usage in dscapture.c.
by Alexandre Julliard
08 Dec '10
08 Dec '10
Module: wine Branch: master Commit: 22d645ab4d8174afffebeaf1b0db12582aaad7f9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=22d645ab4d8174afffebeaf1b…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Wed Dec 8 01:10:42 2010 +0100 wineoss.drv: Standardize the COM usage in dscapture.c. --- dlls/wineoss.drv/dscapture.c | 92 +++++++++++++++++++++++++---------------- 1 files changed, 56 insertions(+), 36 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=22d645ab4d8174afffebe…
1
0
0
0
Michael Stefaniuc : mshtml: Use an iface instead of a vtbl pointer in HTMLPluginsCollection.
by Alexandre Julliard
08 Dec '10
08 Dec '10
Module: wine Branch: master Commit: 5a3c146d0ae0e3e3480249f69bc928cbac0ad8b6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5a3c146d0ae0e3e3480249f69…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Wed Dec 8 01:09:32 2010 +0100 mshtml: Use an iface instead of a vtbl pointer in HTMLPluginsCollection. --- dlls/mshtml/omnavigator.c | 44 ++++++++++++++++++++++---------------------- 1 files changed, 22 insertions(+), 22 deletions(-) diff --git a/dlls/mshtml/omnavigator.c b/dlls/mshtml/omnavigator.c index 99cc142..66bfd87 100644 --- a/dlls/mshtml/omnavigator.c +++ b/dlls/mshtml/omnavigator.c @@ -49,27 +49,28 @@ static inline OmNavigator *impl_from_IOmNavigator(IOmNavigator *iface) struct HTMLPluginsCollection { DispatchEx dispex; - const IHTMLPluginsCollectionVtbl *lpIHTMLPluginsCollectionVtbl; + IHTMLPluginsCollection IHTMLPluginsCollection_iface; LONG ref; OmNavigator *navigator; }; -#define HTMLPLUGINSCOL(x) ((IHTMLPluginsCollection*) &(x)->lpIHTMLPluginsCollectionVtbl) - -#define HTMLPLUGINCOL_THIS(iface) DEFINE_THIS(HTMLPluginsCollection, IHTMLPluginsCollection, iface) +static inline HTMLPluginsCollection *impl_from_IHTMLPluginsCollection(IHTMLPluginsCollection *iface) +{ + return CONTAINING_RECORD(iface, HTMLPluginsCollection, IHTMLPluginsCollection_iface); +} static HRESULT WINAPI HTMLPluginsCollection_QueryInterface(IHTMLPluginsCollection *iface, REFIID riid, void **ppv) { - HTMLPluginsCollection *This = HTMLPLUGINCOL_THIS(iface); + HTMLPluginsCollection *This = impl_from_IHTMLPluginsCollection(iface); if(IsEqualGUID(&IID_IUnknown, riid)) { TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv); - *ppv = HTMLPLUGINSCOL(This); + *ppv = &This->IHTMLPluginsCollection_iface; }else if(IsEqualGUID(&IID_IHTMLPluginsCollection, riid)) { TRACE("(%p)->(IID_IHTMLPluginCollection %p)\n", This, ppv); - *ppv = HTMLPLUGINSCOL(This); + *ppv = &This->IHTMLPluginsCollection_iface; }else if(dispex_query_interface(&This->dispex, riid, ppv)) { return *ppv ? S_OK : E_NOINTERFACE; }else { @@ -84,7 +85,7 @@ static HRESULT WINAPI HTMLPluginsCollection_QueryInterface(IHTMLPluginsCollectio static ULONG WINAPI HTMLPluginsCollection_AddRef(IHTMLPluginsCollection *iface) { - HTMLPluginsCollection *This = HTMLPLUGINCOL_THIS(iface); + HTMLPluginsCollection *This = impl_from_IHTMLPluginsCollection(iface); LONG ref = InterlockedIncrement(&This->ref); TRACE("(%p) ref=%d\n", This, ref); @@ -94,7 +95,7 @@ static ULONG WINAPI HTMLPluginsCollection_AddRef(IHTMLPluginsCollection *iface) static ULONG WINAPI HTMLPluginsCollection_Release(IHTMLPluginsCollection *iface) { - HTMLPluginsCollection *This = HTMLPLUGINCOL_THIS(iface); + HTMLPluginsCollection *This = impl_from_IHTMLPluginsCollection(iface); LONG ref = InterlockedDecrement(&This->ref); TRACE("(%p) ref=%d\n", This, ref); @@ -111,21 +112,21 @@ static ULONG WINAPI HTMLPluginsCollection_Release(IHTMLPluginsCollection *iface) static HRESULT WINAPI HTMLPluginsCollection_GetTypeInfoCount(IHTMLPluginsCollection *iface, UINT *pctinfo) { - HTMLPluginsCollection *This = HTMLPLUGINCOL_THIS(iface); + HTMLPluginsCollection *This = impl_from_IHTMLPluginsCollection(iface); return IDispatchEx_GetTypeInfoCount(DISPATCHEX(&This->dispex), pctinfo); } static HRESULT WINAPI HTMLPluginsCollection_GetTypeInfo(IHTMLPluginsCollection *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo) { - HTMLPluginsCollection *This = HTMLPLUGINCOL_THIS(iface); + HTMLPluginsCollection *This = impl_from_IHTMLPluginsCollection(iface); return IDispatchEx_GetTypeInfo(DISPATCHEX(&This->dispex), iTInfo, lcid, ppTInfo); } static HRESULT WINAPI HTMLPluginsCollection_GetIDsOfNames(IHTMLPluginsCollection *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId) { - HTMLPluginsCollection *This = HTMLPLUGINCOL_THIS(iface); + HTMLPluginsCollection *This = impl_from_IHTMLPluginsCollection(iface); return IDispatchEx_GetIDsOfNames(DISPATCHEX(&This->dispex), riid, rgszNames, cNames, lcid, rgDispId); } @@ -133,27 +134,25 @@ static HRESULT WINAPI HTMLPluginsCollection_Invoke(IHTMLPluginsCollection *iface REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr) { - HTMLPluginsCollection *This = HTMLPLUGINCOL_THIS(iface); + HTMLPluginsCollection *This = impl_from_IHTMLPluginsCollection(iface); return IDispatchEx_Invoke(DISPATCHEX(&This->dispex), dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr); } static HRESULT WINAPI HTMLPluginsCollection_get_length(IHTMLPluginsCollection *iface, LONG *p) { - HTMLPluginsCollection *This = HTMLPLUGINCOL_THIS(iface); + HTMLPluginsCollection *This = impl_from_IHTMLPluginsCollection(iface); FIXME("(%p)->(%p)\n", This, p); return E_NOTIMPL; } static HRESULT WINAPI HTMLPluginsCollection_refresh(IHTMLPluginsCollection *iface, VARIANT_BOOL reload) { - HTMLPluginsCollection *This = HTMLPLUGINCOL_THIS(iface); + HTMLPluginsCollection *This = impl_from_IHTMLPluginsCollection(iface); FIXME("(%p)->(%x)\n", This, reload); return E_NOTIMPL; } -#undef HTMLPLUGINSCOL_THIS - static const IHTMLPluginsCollectionVtbl HTMLPluginsCollectionVtbl = { HTMLPluginsCollection_QueryInterface, HTMLPluginsCollection_AddRef, @@ -185,11 +184,12 @@ static HRESULT create_plugins_collection(OmNavigator *navigator, HTMLPluginsColl if(!col) return E_OUTOFMEMORY; - col->lpIHTMLPluginsCollectionVtbl = &HTMLPluginsCollectionVtbl; + col->IHTMLPluginsCollection_iface.lpVtbl = &HTMLPluginsCollectionVtbl; col->ref = 1; col->navigator = navigator; - init_dispex(&col->dispex, (IUnknown*)HTMLPLUGINSCOL(col), &HTMLPluginsCollection_dispex); + init_dispex(&col->dispex, (IUnknown*)&col->IHTMLPluginsCollection_iface, + &HTMLPluginsCollection_dispex); *ret = col; return S_OK; @@ -240,7 +240,7 @@ static ULONG WINAPI OmNavigator_Release(IOmNavigator *iface) if(!ref) { if(This->plugins) { This->plugins->navigator = NULL; - IHTMLPluginsCollection_Release(HTMLPLUGINSCOL(This->plugins)); + IHTMLPluginsCollection_Release(&This->plugins->IHTMLPluginsCollection_iface); } release_dispex(&This->dispex); heap_free(This); @@ -399,10 +399,10 @@ static HRESULT WINAPI OmNavigator_get_plugins(IOmNavigator *iface, IHTMLPluginsC if(FAILED(hres)) return hres; }else { - IHTMLPluginsCollection_AddRef(HTMLPLUGINSCOL(This->plugins)); + IHTMLPluginsCollection_AddRef(&This->plugins->IHTMLPluginsCollection_iface); } - *p = HTMLPLUGINSCOL(This->plugins); + *p = &This->plugins->IHTMLPluginsCollection_iface; return S_OK; }
1
0
0
0
Anders Jonsson : appwiz.cpl: Update Swedish translation.
by Alexandre Julliard
08 Dec '10
08 Dec '10
Module: wine Branch: master Commit: 973a25a066f3c2298d2680e7d1614daff160c354 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=973a25a066f3c2298d2680e7d…
Author: Anders Jonsson <anders.jonsson(a)norsjonet.se> Date: Tue Dec 7 19:54:26 2010 +0100 appwiz.cpl: Update Swedish translation. --- dlls/appwiz.cpl/Sv.rc | 23 ++++++++++++++++++++++- 1 files changed, 22 insertions(+), 1 deletions(-) diff --git a/dlls/appwiz.cpl/Sv.rc b/dlls/appwiz.cpl/Sv.rc index 75aa17a..f9f852b 100644 --- a/dlls/appwiz.cpl/Sv.rc +++ b/dlls/appwiz.cpl/Sv.rc @@ -42,7 +42,13 @@ STRINGTABLE IDS_INSTALL_FILTER, "Installationsprogram\0*instal*.exe;*setup*.exe;*.msi\0Program (*.exe)\0*.exe\0Alla filer (*.*)\0*.*\0\0" IDS_REMOVE, "&Ta bort..." - IDS_MODIFY_REMOVE, "&Modify/Remove..." + IDS_MODIFY_REMOVE, "&Ändra/Ta bort..." +} + +STRINGTABLE +{ + IDS_DOWNLOADING "Hämtar..." + IDS_INSTALLING "Installerar..." } IDD_MAIN DIALOG 0, 0, 320, 220 @@ -86,3 +92,18 @@ FONT 8, "MS Shell Dlg" CONTROL "", IDC_INFO_UPDATES, "static", SS_LEFT | WS_CHILD | WS_VISIBLE, 104, 90, 136, 8 CONTROL "", IDC_INFO_COMMENTS, "static", SS_LEFT | WS_CHILD | WS_VISIBLE, 104, 100, 136, 8 } + +ID_DWL_DIALOG DIALOG 0, 0, 260, 95 +STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU +CAPTION "Wine Gecko Installationsprogram" +FONT 8, "MS Shell Dlg" +{ + LTEXT "Wine kunde inte hitta paketet Gecko vilket krävs för att program med inbäddad HTML " \ + "ska fungera korrekt. Wine kan hämta och installera det automatiskt åt dig.\n\n" \ + "Obs: Du rekommenderas att använda din distributions paket i stället. " \ + "Se
http://wiki.winehq.org/Gecko
för mer information.", + ID_DWL_STATUS, 10, 10, 240, 50, SS_LEFT + CONTROL "Förlopp", ID_DWL_PROGRESS, PROGRESS_CLASSA, WS_BORDER|PBS_SMOOTH, 10, 40, 240, 12 + DEFPUSHBUTTON "&Installera", ID_DWL_INSTALL, 200, 70, 50, 15, WS_GROUP | WS_TABSTOP + PUSHBUTTON "&Avbryt", IDCANCEL, 140, 70, 50, 15, WS_GROUP | WS_TABSTOP +}
1
0
0
0
Henri Verbeet : wined3d: Store an IWineD3DDeviceImpl pointer in IWineD3DBaseShaderClass.
by Alexandre Julliard
08 Dec '10
08 Dec '10
Module: wine Branch: master Commit: b5637a934ec44acdc20ee5a7a805711fe80a552e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b5637a934ec44acdc20ee5a7a…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue Dec 7 18:47:08 2010 +0100 wined3d: Store an IWineD3DDeviceImpl pointer in IWineD3DBaseShaderClass. --- dlls/wined3d/arb_program_shader.c | 32 +++++++++++++++++--------------- dlls/wined3d/glsl_shader.c | 20 ++++++++++---------- dlls/wined3d/shader.c | 14 +++++++------- dlls/wined3d/wined3d_private.h | 2 +- 4 files changed, 35 insertions(+), 33 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=b5637a934ec44acdc20ee…
1
0
0
0
Henri Verbeet : wined3d: Remove a redundant SetDirty() call from IWineD3DSurfaceImpl_Map().
by Alexandre Julliard
08 Dec '10
08 Dec '10
Module: wine Branch: master Commit: 018a48493be0dfc785de968f11d2c27ae9df222e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=018a48493be0dfc785de968f1…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue Dec 7 18:47:07 2010 +0100 wined3d: Remove a redundant SetDirty() call from IWineD3DSurfaceImpl_Map(). The surface_add_dirty_rect() call already does this. --- dlls/wined3d/surface.c | 12 ------------ 1 files changed, 0 insertions(+), 12 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index f7f0679..91cc880 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -1724,20 +1724,8 @@ lock_end: } if (!(flags & (WINED3DLOCK_NO_DIRTY_UPDATE | WINED3DLOCK_READONLY))) - { surface_add_dirty_rect(This, pRect); - if (This->container.type == WINED3D_CONTAINER_TEXTURE) - { - TRACE("Making container dirty.\n"); - IWineD3DBaseTexture_SetDirty((IWineD3DBaseTexture *)This->container.u.texture, TRUE); - } - else - { - TRACE("Surface is standalone, no need to dirty the container\n"); - } - } - return IWineD3DBaseSurfaceImpl_Map(iface, pLockedRect, pRect, flags); }
1
0
0
0
Henri Verbeet : wined3d: Pass a wined3d_buffer structure to buffer_get_memory().
by Alexandre Julliard
08 Dec '10
08 Dec '10
Module: wine Branch: master Commit: 5fc53941efc82cee0d6ec2beddb1fd31e7eb5f1e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5fc53941efc82cee0d6ec2bed…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue Dec 7 18:47:06 2010 +0100 wined3d: Pass a wined3d_buffer structure to buffer_get_memory(). --- dlls/wined3d/buffer.c | 23 +++++++++++------------ dlls/wined3d/device.c | 2 +- dlls/wined3d/wined3d_private.h | 2 +- 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/dlls/wined3d/buffer.c b/dlls/wined3d/buffer.c index 09c07fe..3048834 100644 --- a/dlls/wined3d/buffer.c +++ b/dlls/wined3d/buffer.c @@ -4,7 +4,7 @@ * Copyright 2004 Christian Costa * Copyright 2005 Oliver Stieber * Copyright 2007-2010 Stefan Dösinger for CodeWeavers - * Copyright 2009 Henri Verbeet for CodeWeavers + * Copyright 2009-2010 Henri Verbeet for CodeWeavers * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -611,24 +611,23 @@ static inline void fixup_transformed_pos(float *p) } /* Context activation is done by the caller. */ -const BYTE *buffer_get_memory(IWineD3DBuffer *iface, const struct wined3d_gl_info *gl_info, GLuint *buffer_object) +const BYTE *buffer_get_memory(struct wined3d_buffer *buffer, + const struct wined3d_gl_info *gl_info, GLuint *buffer_object) { - struct wined3d_buffer *This = (struct wined3d_buffer *)iface; - - *buffer_object = This->buffer_object; - if (!This->buffer_object) + *buffer_object = buffer->buffer_object; + if (!buffer->buffer_object) { - if (This->flags & WINED3D_BUFFER_CREATEBO) + if (buffer->flags & WINED3D_BUFFER_CREATEBO) { - buffer_create_buffer_object(This, gl_info); - This->flags &= ~WINED3D_BUFFER_CREATEBO; - if (This->buffer_object) + buffer_create_buffer_object(buffer, gl_info); + buffer->flags &= ~WINED3D_BUFFER_CREATEBO; + if (buffer->buffer_object) { - *buffer_object = This->buffer_object; + *buffer_object = buffer->buffer_object; return NULL; } } - return This->resource.allocatedMemory; + return buffer->resource.allocatedMemory; } else { diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index c9920e8..ec50693 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -213,7 +213,7 @@ void device_stream_info_from_declaration(IWineD3DDeviceImpl *This, else { TRACE("Stream %u isn't UP, %p\n", element->input_slot, buffer); - data = buffer_get_memory((IWineD3DBuffer *)buffer, &This->adapter->gl_info, &buffer_object); + data = buffer_get_memory(buffer, &This->adapter->gl_info, &buffer_object); /* Can't use vbo's if the base vertex index is negative. OpenGL doesn't accept negative offsets * (or rather offsets bigger than the vbo, because the pointer is unsigned), so use system memory diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index 8165f18..310fa87 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -2545,7 +2545,7 @@ struct wined3d_buffer UINT *conversion_shift; /* NULL if no shifted conversion */ }; -const BYTE *buffer_get_memory(IWineD3DBuffer *iface, const struct wined3d_gl_info *gl_info, +const BYTE *buffer_get_memory(struct wined3d_buffer *buffer, const struct wined3d_gl_info *gl_info, GLuint *buffer_object) DECLSPEC_HIDDEN; BYTE *buffer_get_sysmem(struct wined3d_buffer *This, const struct wined3d_gl_info *gl_info) DECLSPEC_HIDDEN; HRESULT buffer_init(struct wined3d_buffer *buffer, IWineD3DDeviceImpl *device,
1
0
0
0
Henri Verbeet : wined3d: Don't leak heapMemory in surface_remove_pbo().
by Alexandre Julliard
08 Dec '10
08 Dec '10
Module: wine Branch: master Commit: 46f3cc9df640c7d8eb33fffe035bc3ebf1424735 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=46f3cc9df640c7d8eb33fffe0…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue Dec 7 18:47:05 2010 +0100 wined3d: Don't leak heapMemory in surface_remove_pbo(). --- dlls/wined3d/surface.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index c54f6ae..f7f0679 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -1119,9 +1119,12 @@ static void WINAPI IWineD3DSurfaceImpl_PreLoad(IWineD3DSurface *iface) /* Context activation is done by the caller. */ static void surface_remove_pbo(IWineD3DSurfaceImpl *This, const struct wined3d_gl_info *gl_info) { - This->resource.heapMemory = HeapAlloc(GetProcessHeap() ,0 , This->resource.size + RESOURCE_ALIGNMENT); - This->resource.allocatedMemory = - (BYTE *)(((ULONG_PTR) This->resource.heapMemory + (RESOURCE_ALIGNMENT - 1)) & ~(RESOURCE_ALIGNMENT - 1)); + if (!This->resource.heapMemory) + { + This->resource.heapMemory = HeapAlloc(GetProcessHeap(), 0, This->resource.size + RESOURCE_ALIGNMENT); + This->resource.allocatedMemory = + (BYTE *)(((ULONG_PTR)This->resource.heapMemory + (RESOURCE_ALIGNMENT - 1)) & ~(RESOURCE_ALIGNMENT - 1)); + } ENTER_GL(); GL_EXTCALL(glBindBufferARB(GL_PIXEL_UNPACK_BUFFER_ARB, This->pbo));
1
0
0
0
Michael Stefaniuc : shell32: Use an iface instead of a vtbl pointer in IFileSystemBindDataImpl.
by Alexandre Julliard
07 Dec '10
07 Dec '10
Module: wine Branch: master Commit: a6bfa0dd5d0a3ce3c6bd62222453953467275cc5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a6bfa0dd5d0a3ce3c6bd62222…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Tue Dec 7 11:10:00 2010 +0100 shell32: Use an iface instead of a vtbl pointer in IFileSystemBindDataImpl. --- dlls/shell32/shlfsbind.c | 27 ++++++++++++++++----------- 1 files changed, 16 insertions(+), 11 deletions(-) diff --git a/dlls/shell32/shlfsbind.c b/dlls/shell32/shlfsbind.c index 0870b0f..ff13013 100644 --- a/dlls/shell32/shlfsbind.c +++ b/dlls/shell32/shlfsbind.c @@ -41,11 +41,16 @@ WINE_DEFAULT_DEBUG_CHANNEL(pidl); */ typedef struct { - const IFileSystemBindDataVtbl *lpVtbl; - LONG ref; + IFileSystemBindData IFileSystemBindData_iface; + LONG ref; WIN32_FIND_DATAW findFile; } IFileSystemBindDataImpl; +static inline IFileSystemBindDataImpl *impl_from_IFileSystemBindData(IFileSystemBindData *iface) +{ + return CONTAINING_RECORD(iface, IFileSystemBindDataImpl, IFileSystemBindData_iface); +} + static HRESULT WINAPI IFileSystemBindData_fnQueryInterface(IFileSystemBindData *, REFIID, LPVOID*); static ULONG WINAPI IFileSystemBindData_fnAddRef(IFileSystemBindData *); static ULONG WINAPI IFileSystemBindData_fnRelease(IFileSystemBindData *); @@ -80,9 +85,9 @@ HRESULT WINAPI IFileSystemBindData_Constructor(const WIN32_FIND_DATAW *pfd, LPBC if (!sb) return ret; - sb->lpVtbl = &sbvt; + sb->IFileSystemBindData_iface.lpVtbl = &sbvt; sb->ref = 1; - IFileSystemBindData_fnSetFindData((IFileSystemBindData*)sb, pfd); + IFileSystemBindData_fnSetFindData(&sb->IFileSystemBindData_iface, pfd); ret = CreateBindCtx(0, ppV); if (SUCCEEDED(ret)) @@ -96,7 +101,7 @@ HRESULT WINAPI IFileSystemBindData_Constructor(const WIN32_FIND_DATAW *pfd, LPBC IBindCtx_SetBindOptions(*ppV, &bindOpts); IBindCtx_RegisterObjectParam(*ppV, (LPOLESTR)wFileSystemBindData, (LPUNKNOWN)sb); - IFileSystemBindData_Release((IFileSystemBindData*)sb); + IFileSystemBindData_Release(&sb->IFileSystemBindData_iface); } else HeapFree(GetProcessHeap(), 0, sb); @@ -106,7 +111,7 @@ HRESULT WINAPI IFileSystemBindData_Constructor(const WIN32_FIND_DATAW *pfd, LPBC static HRESULT WINAPI IFileSystemBindData_fnQueryInterface( IFileSystemBindData *iface, REFIID riid, LPVOID *ppV) { - IFileSystemBindDataImpl *This = (IFileSystemBindDataImpl *)iface; + IFileSystemBindDataImpl *This = impl_from_IFileSystemBindData(iface); TRACE("(%p)->(\n\tIID:\t%s, %p)\n", This, debugstr_guid(riid), ppV); *ppV = NULL; @@ -128,7 +133,7 @@ static HRESULT WINAPI IFileSystemBindData_fnQueryInterface( static ULONG WINAPI IFileSystemBindData_fnAddRef(IFileSystemBindData *iface) { - IFileSystemBindDataImpl *This = (IFileSystemBindDataImpl *)iface; + IFileSystemBindDataImpl *This = impl_from_IFileSystemBindData(iface); ULONG refCount = InterlockedIncrement(&This->ref); TRACE("(%p)->(count=%i)\n", This, refCount - 1); @@ -138,9 +143,9 @@ static ULONG WINAPI IFileSystemBindData_fnAddRef(IFileSystemBindData *iface) static ULONG WINAPI IFileSystemBindData_fnRelease(IFileSystemBindData *iface) { - IFileSystemBindDataImpl *This = (IFileSystemBindDataImpl *)iface; + IFileSystemBindDataImpl *This = impl_from_IFileSystemBindData(iface); ULONG refCount = InterlockedDecrement(&This->ref); - + TRACE("(%p)->(count=%i)\n", This, refCount + 1); if (!refCount) @@ -154,7 +159,7 @@ static ULONG WINAPI IFileSystemBindData_fnRelease(IFileSystemBindData *iface) static HRESULT WINAPI IFileSystemBindData_fnGetFindData( IFileSystemBindData *iface, WIN32_FIND_DATAW *pfd) { - IFileSystemBindDataImpl *This = (IFileSystemBindDataImpl *)iface; + IFileSystemBindDataImpl *This = impl_from_IFileSystemBindData(iface); TRACE("(%p), %p\n", This, pfd); if (!pfd) @@ -167,7 +172,7 @@ static HRESULT WINAPI IFileSystemBindData_fnGetFindData( static HRESULT WINAPI IFileSystemBindData_fnSetFindData( IFileSystemBindData *iface, const WIN32_FIND_DATAW *pfd) { - IFileSystemBindDataImpl *This = (IFileSystemBindDataImpl *)iface; + IFileSystemBindDataImpl *This = impl_from_IFileSystemBindData(iface); TRACE("(%p), %p\n", This, pfd); if (pfd)
1
0
0
0
← Newer
1
...
64
65
66
67
68
69
70
...
110
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
Results per page:
10
25
50
100
200