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
November 2010
----- 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
866 discussions
Start a n
N
ew thread
Maarten Lankhorst : quartz: Unset time in dsoundrender if it cannot be obtained.
by Alexandre Julliard
29 Nov '10
29 Nov '10
Module: wine Branch: master Commit: f4a0ca85af1a06131402c3fdcdcdc7d7936395ad URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f4a0ca85af1a06131402c3fdc…
Author: Maarten Lankhorst <m.b.lankhorst(a)gmail.com> Date: Mon Nov 29 10:44:13 2010 +0100 quartz: Unset time in dsoundrender if it cannot be obtained. --- dlls/quartz/dsoundrender.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/quartz/dsoundrender.c b/dlls/quartz/dsoundrender.c index 759ba07..bb7fc2d 100644 --- a/dlls/quartz/dsoundrender.c +++ b/dlls/quartz/dsoundrender.c @@ -342,8 +342,10 @@ static HRESULT WINAPI DSoundRender_Receive(BaseInputPin *pin, IMediaSample * pSa if (IMediaSample_GetMediaTime(pSample, &tStart, &tStop) == S_OK) MediaSeekingPassThru_RegisterMediaTime(This->seekthru_unk, tStart); hr = IMediaSample_GetTime(pSample, &tStart, &tStop); - if (FAILED(hr)) + if (FAILED(hr)) { ERR("Cannot get sample time (%x)\n", hr); + tStart = tStop = -1; + } IMediaSample_IsDiscontinuity(pSample);
1
0
0
0
Michael Stefaniuc : explorerframe: Use iface instead of vtbl pointers in NSTC2Impl.
by Alexandre Julliard
29 Nov '10
29 Nov '10
Module: wine Branch: master Commit: 5b40a664a99cfed6f751bcf7a108a2423a889c95 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5b40a664a99cfed6f751bcf7a…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Mon Nov 29 12:51:54 2010 +0100 explorerframe: Use iface instead of vtbl pointers in NSTC2Impl. --- dlls/explorerframe/nstc.c | 83 ++++++++++++++++++++++++--------------------- 1 files changed, 44 insertions(+), 39 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=5b40a664a99cfed6f751b…
1
0
0
0
Michael Stefaniuc : pstorec: Use an iface instead of a vtbl pointer in PStore_impl.
by Alexandre Julliard
29 Nov '10
29 Nov '10
Module: wine Branch: master Commit: d2a6d95d5a222a139d6d3d1c75e75a1ddd02f486 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d2a6d95d5a222a139d6d3d1c7…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Mon Nov 29 10:33:22 2010 +0100 pstorec: Use an iface instead of a vtbl pointer in PStore_impl. --- dlls/pstorec/pstorec.c | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/dlls/pstorec/pstorec.c b/dlls/pstorec/pstorec.c index 493501f..b2e729b 100644 --- a/dlls/pstorec/pstorec.c +++ b/dlls/pstorec/pstorec.c @@ -33,10 +33,15 @@ WINE_DEFAULT_DEBUG_CHANNEL(pstores); typedef struct { - const IPStoreVtbl *lpVtbl; + IPStore IPStore_iface; LONG ref; } PStore_impl; +static inline PStore_impl *impl_from_IPStore(IPStore *iface) +{ + return CONTAINING_RECORD(iface, PStore_impl, IPStore_iface); +} + BOOL WINAPI DllMain(HINSTANCE hinst, DWORD fdwReason, LPVOID fImpLoad) { TRACE("%p %x %p\n", hinst, fdwReason, fImpLoad); @@ -62,7 +67,7 @@ static HRESULT WINAPI PStore_fnQueryInterface( REFIID riid, LPVOID *ppvObj) { - PStore_impl *This = (PStore_impl *)iface; + PStore_impl *This = impl_from_IPStore(iface); TRACE("%p %s\n",This,debugstr_guid(riid)); @@ -87,7 +92,7 @@ static HRESULT WINAPI PStore_fnQueryInterface( */ static ULONG WINAPI PStore_fnAddRef(IPStore* iface) { - PStore_impl *This = (PStore_impl *)iface; + PStore_impl *This = impl_from_IPStore(iface); TRACE("%p %u\n", This, This->ref); @@ -99,7 +104,7 @@ static ULONG WINAPI PStore_fnAddRef(IPStore* iface) */ static ULONG WINAPI PStore_fnRelease(IPStore* iface) { - PStore_impl *This = (PStore_impl *)iface; + PStore_impl *This = impl_from_IPStore(iface); LONG ref; TRACE("%p %u\n", This, This->ref); @@ -359,7 +364,7 @@ HRESULT WINAPI PStoreCreateInstance( IPStore** ppProvider, if( !ips ) return E_OUTOFMEMORY; - ips->lpVtbl = &pstores_vtbl; + ips->IPStore_iface.lpVtbl = &pstores_vtbl; ips->ref = 1; *ppProvider = (IPStore*) ips;
1
0
0
0
Alexandre Julliard : msdmo: Don' t use an interface pointer for an internal function.
by Alexandre Julliard
29 Nov '10
29 Nov '10
Module: wine Branch: master Commit: e59ac81c5e2a0acab249379b5c2c524fe87e5836 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e59ac81c5e2a0acab249379b5…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Nov 29 12:25:53 2010 +0100 msdmo: Don't use an interface pointer for an internal function. --- dlls/msdmo/dmoreg.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/dlls/msdmo/dmoreg.c b/dlls/msdmo/dmoreg.c index 2c55296..0d5d397 100644 --- a/dlls/msdmo/dmoreg.c +++ b/dlls/msdmo/dmoreg.c @@ -333,12 +333,10 @@ lend: /************************************************************************** -* IEnumDMO_Destructor +* IEnumDMOImpl_Destructor */ -static BOOL IEnumDMO_Destructor(IEnumDMO* iface) +static BOOL IEnumDMOImpl_Destructor(IEnumDMOImpl* This) { - IEnumDMOImpl *This = impl_from_IEnumDMO(iface); - TRACE("%p\n", This); if (This->hkey) @@ -418,7 +416,7 @@ static IEnumDMO * IEnumDMO_Constructor( lerr: if(!ret) { - IEnumDMO_Destructor((IEnumDMO*)lpedmo); + IEnumDMOImpl_Destructor(lpedmo); HeapFree(GetProcessHeap(),0,lpedmo); lpedmo = NULL; } @@ -477,7 +475,7 @@ static ULONG WINAPI IEnumDMO_fnRelease(IEnumDMO * iface) if (!refCount) { - IEnumDMO_Destructor((IEnumDMO*)This); + IEnumDMOImpl_Destructor(This); HeapFree(GetProcessHeap(),0,This); } return refCount;
1
0
0
0
Michael Stefaniuc : windowscodecs: Use an iface instead of a vtbl pointer in PaletteImpl.
by Alexandre Julliard
29 Nov '10
29 Nov '10
Module: wine Branch: master Commit: 4313084308ba08329b3814d61fa0de654734bace URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4313084308ba08329b3814d61…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Mon Nov 29 01:01:05 2010 +0100 windowscodecs: Use an iface instead of a vtbl pointer in PaletteImpl. --- dlls/windowscodecs/palette.c | 29 +++++++++++++++++------------ 1 files changed, 17 insertions(+), 12 deletions(-) diff --git a/dlls/windowscodecs/palette.c b/dlls/windowscodecs/palette.c index 40ab190..ec74d13 100644 --- a/dlls/windowscodecs/palette.c +++ b/dlls/windowscodecs/palette.c @@ -35,7 +35,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(wincodecs); typedef struct { - const IWICPaletteVtbl *lpIWICPaletteVtbl; + IWICPalette IWICPalette_iface; LONG ref; UINT count; WICColor *colors; @@ -43,10 +43,15 @@ typedef struct { CRITICAL_SECTION lock; /* must be held when count, colors, or type is accessed */ } PaletteImpl; +static inline PaletteImpl *impl_from_IWICPalette(IWICPalette *iface) +{ + return CONTAINING_RECORD(iface, PaletteImpl, IWICPalette_iface); +} + static HRESULT WINAPI PaletteImpl_QueryInterface(IWICPalette *iface, REFIID iid, void **ppv) { - PaletteImpl *This = (PaletteImpl*)iface; + PaletteImpl *This = impl_from_IWICPalette(iface); TRACE("(%p,%s,%p)\n", iface, debugstr_guid(iid), ppv); if (!ppv) return E_INVALIDARG; @@ -67,7 +72,7 @@ static HRESULT WINAPI PaletteImpl_QueryInterface(IWICPalette *iface, REFIID iid, static ULONG WINAPI PaletteImpl_AddRef(IWICPalette *iface) { - PaletteImpl *This = (PaletteImpl*)iface; + PaletteImpl *This = impl_from_IWICPalette(iface); ULONG ref = InterlockedIncrement(&This->ref); TRACE("(%p) refcount=%u\n", iface, ref); @@ -77,7 +82,7 @@ static ULONG WINAPI PaletteImpl_AddRef(IWICPalette *iface) static ULONG WINAPI PaletteImpl_Release(IWICPalette *iface) { - PaletteImpl *This = (PaletteImpl*)iface; + PaletteImpl *This = impl_from_IWICPalette(iface); ULONG ref = InterlockedDecrement(&This->ref); TRACE("(%p) refcount=%u\n", iface, ref); @@ -103,7 +108,7 @@ static HRESULT WINAPI PaletteImpl_InitializePredefined(IWICPalette *iface, static HRESULT WINAPI PaletteImpl_InitializeCustom(IWICPalette *iface, WICColor *pColors, UINT colorCount) { - PaletteImpl *This = (PaletteImpl*)iface; + PaletteImpl *This = impl_from_IWICPalette(iface); WICColor *new_colors; TRACE("(%p,%p,%u)\n", iface, pColors, colorCount); @@ -147,7 +152,7 @@ static HRESULT WINAPI PaletteImpl_InitializeFromPalette(IWICPalette *iface, static HRESULT WINAPI PaletteImpl_GetType(IWICPalette *iface, WICBitmapPaletteType *pePaletteType) { - PaletteImpl *This = (PaletteImpl*)iface; + PaletteImpl *This = impl_from_IWICPalette(iface); TRACE("(%p,%p)\n", iface, pePaletteType); @@ -162,7 +167,7 @@ static HRESULT WINAPI PaletteImpl_GetType(IWICPalette *iface, static HRESULT WINAPI PaletteImpl_GetColorCount(IWICPalette *iface, UINT *pcCount) { - PaletteImpl *This = (PaletteImpl*)iface; + PaletteImpl *This = impl_from_IWICPalette(iface); TRACE("(%p,%p)\n", iface, pcCount); @@ -178,7 +183,7 @@ static HRESULT WINAPI PaletteImpl_GetColorCount(IWICPalette *iface, UINT *pcCoun static HRESULT WINAPI PaletteImpl_GetColors(IWICPalette *iface, UINT colorCount, WICColor *pColors, UINT *pcActualColors) { - PaletteImpl *This = (PaletteImpl*)iface; + PaletteImpl *This = impl_from_IWICPalette(iface); TRACE("(%p,%i,%p,%p)\n", iface, colorCount, pColors, pcActualColors); @@ -199,7 +204,7 @@ static HRESULT WINAPI PaletteImpl_GetColors(IWICPalette *iface, UINT colorCount, static HRESULT WINAPI PaletteImpl_IsBlackWhite(IWICPalette *iface, BOOL *pfIsBlackWhite) { - PaletteImpl *This = (PaletteImpl*)iface; + PaletteImpl *This = impl_from_IWICPalette(iface); TRACE("(%p,%p)\n", iface, pfIsBlackWhite); @@ -217,7 +222,7 @@ static HRESULT WINAPI PaletteImpl_IsBlackWhite(IWICPalette *iface, BOOL *pfIsBla static HRESULT WINAPI PaletteImpl_IsGrayscale(IWICPalette *iface, BOOL *pfIsGrayscale) { - PaletteImpl *This = (PaletteImpl*)iface; + PaletteImpl *This = impl_from_IWICPalette(iface); TRACE("(%p,%p)\n", iface, pfIsGrayscale); @@ -242,7 +247,7 @@ static HRESULT WINAPI PaletteImpl_IsGrayscale(IWICPalette *iface, BOOL *pfIsGray static HRESULT WINAPI PaletteImpl_HasAlpha(IWICPalette *iface, BOOL *pfHasAlpha) { - PaletteImpl *This = (PaletteImpl*)iface; + PaletteImpl *This = impl_from_IWICPalette(iface); int i; TRACE("(%p,%p)\n", iface, pfHasAlpha); @@ -286,7 +291,7 @@ HRESULT PaletteImpl_Create(IWICPalette **palette) This = HeapAlloc(GetProcessHeap(), 0, sizeof(PaletteImpl)); if (!This) return E_OUTOFMEMORY; - This->lpIWICPaletteVtbl = &PaletteImpl_Vtbl; + This->IWICPalette_iface.lpVtbl = &PaletteImpl_Vtbl; This->ref = 1; This->count = 0; This->colors = NULL;
1
0
0
0
Michael Stefaniuc : windowscodecs: Use an iface instead of a vtbl pointer in ImagingFactory.
by Alexandre Julliard
29 Nov '10
29 Nov '10
Module: wine Branch: master Commit: e97fb5036d58f076f49ce909fd5d208da8799606 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e97fb5036d58f076f49ce909f…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Mon Nov 29 01:00:50 2010 +0100 windowscodecs: Use an iface instead of a vtbl pointer in ImagingFactory. --- dlls/windowscodecs/imgfactory.c | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/dlls/windowscodecs/imgfactory.c b/dlls/windowscodecs/imgfactory.c index 5c81b98..a2e8e7f 100644 --- a/dlls/windowscodecs/imgfactory.c +++ b/dlls/windowscodecs/imgfactory.c @@ -36,14 +36,19 @@ WINE_DEFAULT_DEBUG_CHANNEL(wincodecs); typedef struct { - const IWICImagingFactoryVtbl *lpIWICImagingFactoryVtbl; + IWICImagingFactory IWICImagingFactory_iface; LONG ref; } ImagingFactory; +static inline ImagingFactory *impl_from_IWICImagingFactory(IWICImagingFactory *iface) +{ + return CONTAINING_RECORD(iface, ImagingFactory, IWICImagingFactory_iface); +} + static HRESULT WINAPI ImagingFactory_QueryInterface(IWICImagingFactory *iface, REFIID iid, void **ppv) { - ImagingFactory *This = (ImagingFactory*)iface; + ImagingFactory *This = impl_from_IWICImagingFactory(iface); TRACE("(%p,%s,%p)\n", iface, debugstr_guid(iid), ppv); if (!ppv) return E_INVALIDARG; @@ -64,7 +69,7 @@ static HRESULT WINAPI ImagingFactory_QueryInterface(IWICImagingFactory *iface, R static ULONG WINAPI ImagingFactory_AddRef(IWICImagingFactory *iface) { - ImagingFactory *This = (ImagingFactory*)iface; + ImagingFactory *This = impl_from_IWICImagingFactory(iface); ULONG ref = InterlockedIncrement(&This->ref); TRACE("(%p) refcount=%u\n", iface, ref); @@ -74,7 +79,7 @@ static ULONG WINAPI ImagingFactory_AddRef(IWICImagingFactory *iface) static ULONG WINAPI ImagingFactory_Release(IWICImagingFactory *iface) { - ImagingFactory *This = (ImagingFactory*)iface; + ImagingFactory *This = impl_from_IWICImagingFactory(iface); ULONG ref = InterlockedDecrement(&This->ref); TRACE("(%p) refcount=%u\n", iface, ref); @@ -428,7 +433,7 @@ HRESULT ImagingFactory_CreateInstance(IUnknown *pUnkOuter, REFIID iid, void** pp This = HeapAlloc(GetProcessHeap(), 0, sizeof(ImagingFactory)); if (!This) return E_OUTOFMEMORY; - This->lpIWICImagingFactoryVtbl = &ImagingFactory_Vtbl; + This->IWICImagingFactory_iface.lpVtbl = &ImagingFactory_Vtbl; This->ref = 1; ret = IUnknown_QueryInterface((IUnknown*)This, iid, ppv);
1
0
0
0
Michael Stefaniuc : windowscodecs: Standardize the COM usage in info.c.
by Alexandre Julliard
29 Nov '10
29 Nov '10
Module: wine Branch: master Commit: cbea26039159e1220695888fd901cb59450758f0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cbea26039159e1220695888fd…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Mon Nov 29 01:00:41 2010 +0100 windowscodecs: Standardize the COM usage in info.c. --- dlls/windowscodecs/info.c | 90 +++++++++++++++++++++++++++----------------- 1 files changed, 55 insertions(+), 35 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=cbea26039159e12206958…
1
0
0
0
Michael Stefaniuc : windowscodecs: Standardize the COM usage in pngformat.c .
by Alexandre Julliard
29 Nov '10
29 Nov '10
Module: wine Branch: master Commit: 2854f06105d1b6c4b6f779cdbd8ef1eef0765226 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2854f06105d1b6c4b6f779cdb…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Mon Nov 29 00:59:35 2010 +0100 windowscodecs: Standardize the COM usage in pngformat.c. --- dlls/windowscodecs/pngformat.c | 43 ++++++++++++++++++++++----------------- 1 files changed, 24 insertions(+), 19 deletions(-) diff --git a/dlls/windowscodecs/pngformat.c b/dlls/windowscodecs/pngformat.c index 791df56..9923097 100644 --- a/dlls/windowscodecs/pngformat.c +++ b/dlls/windowscodecs/pngformat.c @@ -160,8 +160,8 @@ static void user_warning_fn(png_structp png_ptr, png_const_charp warning_message } typedef struct { - const IWICBitmapDecoderVtbl *lpVtbl; - const IWICBitmapFrameDecodeVtbl *lpFrameVtbl; + IWICBitmapDecoder IWICBitmapDecoder_iface; + IWICBitmapFrameDecode IWICBitmapFrameDecode_iface; LONG ref; png_structp png_ptr; png_infop info_ptr; @@ -174,9 +174,14 @@ typedef struct { CRITICAL_SECTION lock; /* must be held when png structures are accessed or initialized is set */ } PngDecoder; -static inline PngDecoder *impl_from_frame(IWICBitmapFrameDecode *iface) +static inline PngDecoder *impl_from_IWICBitmapDecoder(IWICBitmapDecoder *iface) { - return CONTAINING_RECORD(iface, PngDecoder, lpFrameVtbl); + return CONTAINING_RECORD(iface, PngDecoder, IWICBitmapDecoder_iface); +} + +static inline PngDecoder *impl_from_IWICBitmapFrameDecode(IWICBitmapFrameDecode *iface) +{ + return CONTAINING_RECORD(iface, PngDecoder, IWICBitmapFrameDecode_iface); } static const IWICBitmapFrameDecodeVtbl PngDecoder_FrameVtbl; @@ -184,7 +189,7 @@ static const IWICBitmapFrameDecodeVtbl PngDecoder_FrameVtbl; static HRESULT WINAPI PngDecoder_QueryInterface(IWICBitmapDecoder *iface, REFIID iid, void **ppv) { - PngDecoder *This = (PngDecoder*)iface; + PngDecoder *This = impl_from_IWICBitmapDecoder(iface); TRACE("(%p,%s,%p)\n", iface, debugstr_guid(iid), ppv); if (!ppv) return E_INVALIDARG; @@ -205,7 +210,7 @@ static HRESULT WINAPI PngDecoder_QueryInterface(IWICBitmapDecoder *iface, REFIID static ULONG WINAPI PngDecoder_AddRef(IWICBitmapDecoder *iface) { - PngDecoder *This = (PngDecoder*)iface; + PngDecoder *This = impl_from_IWICBitmapDecoder(iface); ULONG ref = InterlockedIncrement(&This->ref); TRACE("(%p) refcount=%u\n", iface, ref); @@ -215,7 +220,7 @@ static ULONG WINAPI PngDecoder_AddRef(IWICBitmapDecoder *iface) static ULONG WINAPI PngDecoder_Release(IWICBitmapDecoder *iface) { - PngDecoder *This = (PngDecoder*)iface; + PngDecoder *This = impl_from_IWICBitmapDecoder(iface); ULONG ref = InterlockedDecrement(&This->ref); TRACE("(%p) refcount=%u\n", iface, ref); @@ -391,7 +396,7 @@ static void end_callback(png_structp png_ptr, png_infop info) static HRESULT WINAPI PngDecoder_Initialize(IWICBitmapDecoder *iface, IStream *pIStream, WICDecodeOptions cacheOptions) { - PngDecoder *This = (PngDecoder*)iface; + PngDecoder *This = impl_from_IWICBitmapDecoder(iface); LARGE_INTEGER seek; HRESULT hr=S_OK; png_bytep *row_pointers=NULL; @@ -519,7 +524,7 @@ static HRESULT WINAPI PngDecoder_GetFrameCount(IWICBitmapDecoder *iface, static HRESULT WINAPI PngDecoder_GetFrame(IWICBitmapDecoder *iface, UINT index, IWICBitmapFrameDecode **ppIBitmapFrame) { - PngDecoder *This = (PngDecoder*)iface; + PngDecoder *This = impl_from_IWICBitmapDecoder(iface); TRACE("(%p,%u,%p)\n", iface, index, ppIBitmapFrame); if (!This->initialized) return WINCODEC_ERR_NOTINITIALIZED; @@ -528,7 +533,7 @@ static HRESULT WINAPI PngDecoder_GetFrame(IWICBitmapDecoder *iface, IWICBitmapDecoder_AddRef(iface); - *ppIBitmapFrame = (void*)(&This->lpFrameVtbl); + *ppIBitmapFrame = &This->IWICBitmapFrameDecode_iface; return S_OK; } @@ -573,20 +578,20 @@ static HRESULT WINAPI PngDecoder_Frame_QueryInterface(IWICBitmapFrameDecode *ifa static ULONG WINAPI PngDecoder_Frame_AddRef(IWICBitmapFrameDecode *iface) { - PngDecoder *This = impl_from_frame(iface); + PngDecoder *This = impl_from_IWICBitmapFrameDecode(iface); return IUnknown_AddRef((IUnknown*)This); } static ULONG WINAPI PngDecoder_Frame_Release(IWICBitmapFrameDecode *iface) { - PngDecoder *This = impl_from_frame(iface); + PngDecoder *This = impl_from_IWICBitmapFrameDecode(iface); return IUnknown_Release((IUnknown*)This); } static HRESULT WINAPI PngDecoder_Frame_GetSize(IWICBitmapFrameDecode *iface, UINT *puiWidth, UINT *puiHeight) { - PngDecoder *This = impl_from_frame(iface); + PngDecoder *This = impl_from_IWICBitmapFrameDecode(iface); *puiWidth = This->width; *puiHeight = This->height; TRACE("(%p)->(%u,%u)\n", iface, *puiWidth, *puiHeight); @@ -596,7 +601,7 @@ static HRESULT WINAPI PngDecoder_Frame_GetSize(IWICBitmapFrameDecode *iface, static HRESULT WINAPI PngDecoder_Frame_GetPixelFormat(IWICBitmapFrameDecode *iface, WICPixelFormatGUID *pPixelFormat) { - PngDecoder *This = impl_from_frame(iface); + PngDecoder *This = impl_from_IWICBitmapFrameDecode(iface); TRACE("(%p,%p)\n", iface, pPixelFormat); memcpy(pPixelFormat, This->format, sizeof(GUID)); @@ -607,7 +612,7 @@ static HRESULT WINAPI PngDecoder_Frame_GetPixelFormat(IWICBitmapFrameDecode *ifa static HRESULT WINAPI PngDecoder_Frame_GetResolution(IWICBitmapFrameDecode *iface, double *pDpiX, double *pDpiY) { - PngDecoder *This = impl_from_frame(iface); + PngDecoder *This = impl_from_IWICBitmapFrameDecode(iface); png_uint_32 ret, xres, yres; int unit_type; @@ -636,7 +641,7 @@ static HRESULT WINAPI PngDecoder_Frame_GetResolution(IWICBitmapFrameDecode *ifac static HRESULT WINAPI PngDecoder_Frame_CopyPalette(IWICBitmapFrameDecode *iface, IWICPalette *pIPalette) { - PngDecoder *This = impl_from_frame(iface); + PngDecoder *This = impl_from_IWICBitmapFrameDecode(iface); png_uint_32 ret; png_colorp png_palette; int num_palette; @@ -695,7 +700,7 @@ end: static HRESULT WINAPI PngDecoder_Frame_CopyPixels(IWICBitmapFrameDecode *iface, const WICRect *prc, UINT cbStride, UINT cbBufferSize, BYTE *pbBuffer) { - PngDecoder *This = impl_from_frame(iface); + PngDecoder *This = impl_from_IWICBitmapFrameDecode(iface); TRACE("(%p,%p,%u,%u,%p)\n", iface, prc, cbStride, cbBufferSize, pbBuffer); return copy_pixels(This->bpp, This->image_bits, @@ -758,8 +763,8 @@ HRESULT PngDecoder_CreateInstance(IUnknown *pUnkOuter, REFIID iid, void** ppv) This = HeapAlloc(GetProcessHeap(), 0, sizeof(PngDecoder)); if (!This) return E_OUTOFMEMORY; - This->lpVtbl = &PngDecoder_Vtbl; - This->lpFrameVtbl = &PngDecoder_FrameVtbl; + This->IWICBitmapDecoder_iface.lpVtbl = &PngDecoder_Vtbl; + This->IWICBitmapFrameDecode_iface.lpVtbl = &PngDecoder_FrameVtbl; This->ref = 1; This->png_ptr = NULL; This->info_ptr = NULL;
1
0
0
0
Michael Stefaniuc : windowscodecs: Standardize the COM usage in jpegformat. c.
by Alexandre Julliard
29 Nov '10
29 Nov '10
Module: wine Branch: master Commit: 682600b7fc24f800f6913d012064f84b346b2b57 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=682600b7fc24f800f6913d012…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Mon Nov 29 00:59:20 2010 +0100 windowscodecs: Standardize the COM usage in jpegformat.c. --- dlls/windowscodecs/jpegformat.c | 43 +++++++++++++++++++++----------------- 1 files changed, 24 insertions(+), 19 deletions(-) diff --git a/dlls/windowscodecs/jpegformat.c b/dlls/windowscodecs/jpegformat.c index c3cd455..e7a22c9 100644 --- a/dlls/windowscodecs/jpegformat.c +++ b/dlls/windowscodecs/jpegformat.c @@ -126,8 +126,8 @@ static void emit_message_fn(j_common_ptr cinfo, int msg_level) } typedef struct { - const IWICBitmapDecoderVtbl *lpVtbl; - const IWICBitmapFrameDecodeVtbl *lpFrameVtbl; + IWICBitmapDecoder IWICBitmapDecoder_iface; + IWICBitmapFrameDecode IWICBitmapFrameDecode_iface; LONG ref; BOOL initialized; BOOL cinfo_initialized; @@ -140,20 +140,25 @@ typedef struct { CRITICAL_SECTION lock; } JpegDecoder; -static inline JpegDecoder *decoder_from_decompress(j_decompress_ptr decompress) +static inline JpegDecoder *impl_from_IWICBitmapDecoder(IWICBitmapDecoder *iface) { - return CONTAINING_RECORD(decompress, JpegDecoder, cinfo); + return CONTAINING_RECORD(iface, JpegDecoder, IWICBitmapDecoder_iface); } -static inline JpegDecoder *decoder_from_frame(IWICBitmapFrameDecode *iface) +static inline JpegDecoder *impl_from_IWICBitmapFrameDecode(IWICBitmapFrameDecode *iface) { - return CONTAINING_RECORD(iface, JpegDecoder, lpFrameVtbl); + return CONTAINING_RECORD(iface, JpegDecoder, IWICBitmapFrameDecode_iface); +} + +static inline JpegDecoder *decoder_from_decompress(j_decompress_ptr decompress) +{ + return CONTAINING_RECORD(decompress, JpegDecoder, cinfo); } static HRESULT WINAPI JpegDecoder_QueryInterface(IWICBitmapDecoder *iface, REFIID iid, void **ppv) { - JpegDecoder *This = (JpegDecoder*)iface; + JpegDecoder *This = impl_from_IWICBitmapDecoder(iface); TRACE("(%p,%s,%p)\n", iface, debugstr_guid(iid), ppv); if (!ppv) return E_INVALIDARG; @@ -174,7 +179,7 @@ static HRESULT WINAPI JpegDecoder_QueryInterface(IWICBitmapDecoder *iface, REFII static ULONG WINAPI JpegDecoder_AddRef(IWICBitmapDecoder *iface) { - JpegDecoder *This = (JpegDecoder*)iface; + JpegDecoder *This = impl_from_IWICBitmapDecoder(iface); ULONG ref = InterlockedIncrement(&This->ref); TRACE("(%p) refcount=%u\n", iface, ref); @@ -184,7 +189,7 @@ static ULONG WINAPI JpegDecoder_AddRef(IWICBitmapDecoder *iface) static ULONG WINAPI JpegDecoder_Release(IWICBitmapDecoder *iface) { - JpegDecoder *This = (JpegDecoder*)iface; + JpegDecoder *This = impl_from_IWICBitmapDecoder(iface); ULONG ref = InterlockedDecrement(&This->ref); TRACE("(%p) refcount=%u\n", iface, ref); @@ -258,7 +263,7 @@ static void source_mgr_term_source(j_decompress_ptr cinfo) static HRESULT WINAPI JpegDecoder_Initialize(IWICBitmapDecoder *iface, IStream *pIStream, WICDecodeOptions cacheOptions) { - JpegDecoder *This = (JpegDecoder*)iface; + JpegDecoder *This = impl_from_IWICBitmapDecoder(iface); int ret; LARGE_INTEGER seek; jmp_buf jmpbuf; @@ -407,7 +412,7 @@ static HRESULT WINAPI JpegDecoder_GetFrameCount(IWICBitmapDecoder *iface, static HRESULT WINAPI JpegDecoder_GetFrame(IWICBitmapDecoder *iface, UINT index, IWICBitmapFrameDecode **ppIBitmapFrame) { - JpegDecoder *This = (JpegDecoder*)iface; + JpegDecoder *This = impl_from_IWICBitmapDecoder(iface); TRACE("(%p,%u,%p)\n", iface, index, ppIBitmapFrame); if (!This->initialized) return WINCODEC_ERR_NOTINITIALIZED; @@ -415,7 +420,7 @@ static HRESULT WINAPI JpegDecoder_GetFrame(IWICBitmapDecoder *iface, if (index != 0) return E_INVALIDARG; IWICBitmapDecoder_AddRef(iface); - *ppIBitmapFrame = (IWICBitmapFrameDecode*)&This->lpFrameVtbl; + *ppIBitmapFrame = &This->IWICBitmapFrameDecode_iface; return S_OK; } @@ -462,20 +467,20 @@ static HRESULT WINAPI JpegDecoder_Frame_QueryInterface(IWICBitmapFrameDecode *if static ULONG WINAPI JpegDecoder_Frame_AddRef(IWICBitmapFrameDecode *iface) { - JpegDecoder *This = decoder_from_frame(iface); + JpegDecoder *This = impl_from_IWICBitmapFrameDecode(iface); return IUnknown_AddRef((IUnknown*)This); } static ULONG WINAPI JpegDecoder_Frame_Release(IWICBitmapFrameDecode *iface) { - JpegDecoder *This = decoder_from_frame(iface); + JpegDecoder *This = impl_from_IWICBitmapFrameDecode(iface); return IUnknown_Release((IUnknown*)This); } static HRESULT WINAPI JpegDecoder_Frame_GetSize(IWICBitmapFrameDecode *iface, UINT *puiWidth, UINT *puiHeight) { - JpegDecoder *This = decoder_from_frame(iface); + JpegDecoder *This = impl_from_IWICBitmapFrameDecode(iface); *puiWidth = This->cinfo.output_width; *puiHeight = This->cinfo.output_height; TRACE("(%p)->(%u,%u)\n", iface, *puiWidth, *puiHeight); @@ -485,7 +490,7 @@ static HRESULT WINAPI JpegDecoder_Frame_GetSize(IWICBitmapFrameDecode *iface, static HRESULT WINAPI JpegDecoder_Frame_GetPixelFormat(IWICBitmapFrameDecode *iface, WICPixelFormatGUID *pPixelFormat) { - JpegDecoder *This = decoder_from_frame(iface); + JpegDecoder *This = impl_from_IWICBitmapFrameDecode(iface); TRACE("(%p,%p)\n", iface, pPixelFormat); if (This->cinfo.out_color_space == JCS_RGB) memcpy(pPixelFormat, &GUID_WICPixelFormat24bppBGR, sizeof(GUID)); @@ -513,7 +518,7 @@ static HRESULT WINAPI JpegDecoder_Frame_CopyPalette(IWICBitmapFrameDecode *iface static HRESULT WINAPI JpegDecoder_Frame_CopyPixels(IWICBitmapFrameDecode *iface, const WICRect *prc, UINT cbStride, UINT cbBufferSize, BYTE *pbBuffer) { - JpegDecoder *This = decoder_from_frame(iface); + JpegDecoder *This = impl_from_IWICBitmapFrameDecode(iface); UINT bpp; UINT stride; UINT data_size; @@ -673,8 +678,8 @@ HRESULT JpegDecoder_CreateInstance(IUnknown *pUnkOuter, REFIID iid, void** ppv) This = HeapAlloc(GetProcessHeap(), 0, sizeof(JpegDecoder)); if (!This) return E_OUTOFMEMORY; - This->lpVtbl = &JpegDecoder_Vtbl; - This->lpFrameVtbl = &JpegDecoder_Frame_Vtbl; + This->IWICBitmapDecoder_iface.lpVtbl = &JpegDecoder_Vtbl; + This->IWICBitmapFrameDecode_iface.lpVtbl = &JpegDecoder_Frame_Vtbl; This->ref = 1; This->initialized = FALSE; This->cinfo_initialized = FALSE;
1
0
0
0
Michael Stefaniuc : windowscodecs: Standardize the COM usage in icoformat.c .
by Alexandre Julliard
29 Nov '10
29 Nov '10
Module: wine Branch: master Commit: 5f15f9b8b7cc4f7fd1ce192dc72e4eb84138a22c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5f15f9b8b7cc4f7fd1ce192dc…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Mon Nov 29 00:58:53 2010 +0100 windowscodecs: Standardize the COM usage in icoformat.c. --- dlls/windowscodecs/icoformat.c | 40 +++++++++++++++++++++++++--------------- 1 files changed, 25 insertions(+), 15 deletions(-) diff --git a/dlls/windowscodecs/icoformat.c b/dlls/windowscodecs/icoformat.c index 33fea1f..e6a590f 100644 --- a/dlls/windowscodecs/icoformat.c +++ b/dlls/windowscodecs/icoformat.c @@ -57,7 +57,7 @@ typedef struct #include "poppack.h" typedef struct { - const IWICBitmapDecoderVtbl *lpVtbl; + IWICBitmapDecoder IWICBitmapDecoder_iface; LONG ref; BOOL initialized; IStream *stream; @@ -66,16 +66,26 @@ typedef struct { } IcoDecoder; typedef struct { - const IWICBitmapFrameDecodeVtbl *lpVtbl; + IWICBitmapFrameDecode IWICBitmapFrameDecode_iface; LONG ref; UINT width, height; BYTE *bits; } IcoFrameDecode; +static inline IcoDecoder *impl_from_IWICBitmapDecoder(IWICBitmapDecoder *iface) +{ + return CONTAINING_RECORD(iface, IcoDecoder, IWICBitmapDecoder_iface); +} + +static inline IcoFrameDecode *impl_from_IWICBitmapFrameDecode(IWICBitmapFrameDecode *iface) +{ + return CONTAINING_RECORD(iface, IcoFrameDecode, IWICBitmapFrameDecode_iface); +} + static HRESULT WINAPI IcoFrameDecode_QueryInterface(IWICBitmapFrameDecode *iface, REFIID iid, void **ppv) { - IcoFrameDecode *This = (IcoFrameDecode*)iface; + IcoFrameDecode *This = impl_from_IWICBitmapFrameDecode(iface); TRACE("(%p,%s,%p)\n", iface, debugstr_guid(iid), ppv); if (!ppv) return E_INVALIDARG; @@ -98,7 +108,7 @@ static HRESULT WINAPI IcoFrameDecode_QueryInterface(IWICBitmapFrameDecode *iface static ULONG WINAPI IcoFrameDecode_AddRef(IWICBitmapFrameDecode *iface) { - IcoFrameDecode *This = (IcoFrameDecode*)iface; + IcoFrameDecode *This = impl_from_IWICBitmapFrameDecode(iface); ULONG ref = InterlockedIncrement(&This->ref); TRACE("(%p) refcount=%u\n", iface, ref); @@ -108,7 +118,7 @@ static ULONG WINAPI IcoFrameDecode_AddRef(IWICBitmapFrameDecode *iface) static ULONG WINAPI IcoFrameDecode_Release(IWICBitmapFrameDecode *iface) { - IcoFrameDecode *This = (IcoFrameDecode*)iface; + IcoFrameDecode *This = impl_from_IWICBitmapFrameDecode(iface); ULONG ref = InterlockedDecrement(&This->ref); TRACE("(%p) refcount=%u\n", iface, ref); @@ -125,7 +135,7 @@ static ULONG WINAPI IcoFrameDecode_Release(IWICBitmapFrameDecode *iface) static HRESULT WINAPI IcoFrameDecode_GetSize(IWICBitmapFrameDecode *iface, UINT *puiWidth, UINT *puiHeight) { - IcoFrameDecode *This = (IcoFrameDecode*)iface; + IcoFrameDecode *This = impl_from_IWICBitmapFrameDecode(iface); *puiWidth = This->width; *puiHeight = This->height; @@ -159,7 +169,7 @@ static HRESULT WINAPI IcoFrameDecode_CopyPalette(IWICBitmapFrameDecode *iface, static HRESULT WINAPI IcoFrameDecode_CopyPixels(IWICBitmapFrameDecode *iface, const WICRect *prc, UINT cbStride, UINT cbBufferSize, BYTE *pbBuffer) { - IcoFrameDecode *This = (IcoFrameDecode*)iface; + IcoFrameDecode *This = impl_from_IWICBitmapFrameDecode(iface); TRACE("(%p,%p,%u,%u,%p)\n", iface, prc, cbStride, cbBufferSize, pbBuffer); return copy_pixels(32, This->bits, This->width, This->height, This->width * 4, @@ -392,7 +402,7 @@ end: static HRESULT WINAPI IcoDecoder_QueryInterface(IWICBitmapDecoder *iface, REFIID iid, void **ppv) { - IcoDecoder *This = (IcoDecoder*)iface; + IcoDecoder *This = impl_from_IWICBitmapDecoder(iface); TRACE("(%p,%s,%p)\n", iface, debugstr_guid(iid), ppv); if (!ppv) return E_INVALIDARG; @@ -413,7 +423,7 @@ static HRESULT WINAPI IcoDecoder_QueryInterface(IWICBitmapDecoder *iface, REFIID static ULONG WINAPI IcoDecoder_AddRef(IWICBitmapDecoder *iface) { - IcoDecoder *This = (IcoDecoder*)iface; + IcoDecoder *This = impl_from_IWICBitmapDecoder(iface); ULONG ref = InterlockedIncrement(&This->ref); TRACE("(%p) refcount=%u\n", iface, ref); @@ -423,7 +433,7 @@ static ULONG WINAPI IcoDecoder_AddRef(IWICBitmapDecoder *iface) static ULONG WINAPI IcoDecoder_Release(IWICBitmapDecoder *iface) { - IcoDecoder *This = (IcoDecoder*)iface; + IcoDecoder *This = impl_from_IWICBitmapDecoder(iface); ULONG ref = InterlockedDecrement(&This->ref); TRACE("(%p) refcount=%u\n", iface, ref); @@ -449,7 +459,7 @@ static HRESULT WINAPI IcoDecoder_QueryCapability(IWICBitmapDecoder *iface, IStre static HRESULT WINAPI IcoDecoder_Initialize(IWICBitmapDecoder *iface, IStream *pIStream, WICDecodeOptions cacheOptions) { - IcoDecoder *This = (IcoDecoder*)iface; + IcoDecoder *This = impl_from_IWICBitmapDecoder(iface); LARGE_INTEGER seek; HRESULT hr; ULONG bytesread; @@ -540,7 +550,7 @@ static HRESULT WINAPI IcoDecoder_GetThumbnail(IWICBitmapDecoder *iface, static HRESULT WINAPI IcoDecoder_GetFrameCount(IWICBitmapDecoder *iface, UINT *pCount) { - IcoDecoder *This = (IcoDecoder*)iface; + IcoDecoder *This = impl_from_IWICBitmapDecoder(iface); TRACE("(%p,%p)\n", iface, pCount); if (!This->initialized) return WINCODEC_ERR_NOTINITIALIZED; @@ -554,7 +564,7 @@ static HRESULT WINAPI IcoDecoder_GetFrameCount(IWICBitmapDecoder *iface, static HRESULT WINAPI IcoDecoder_GetFrame(IWICBitmapDecoder *iface, UINT index, IWICBitmapFrameDecode **ppIBitmapFrame) { - IcoDecoder *This = (IcoDecoder*)iface; + IcoDecoder *This = impl_from_IWICBitmapDecoder(iface); IcoFrameDecode *result=NULL; LARGE_INTEGER seek; ULARGE_INTEGER offset, length; @@ -586,7 +596,7 @@ static HRESULT WINAPI IcoDecoder_GetFrame(IWICBitmapDecoder *iface, goto fail; } - result->lpVtbl = &IcoFrameDecode_Vtbl; + result->IWICBitmapFrameDecode_iface.lpVtbl = &IcoFrameDecode_Vtbl; result->ref = 1; result->bits = NULL; @@ -677,7 +687,7 @@ HRESULT IcoDecoder_CreateInstance(IUnknown *pUnkOuter, REFIID iid, void** ppv) This = HeapAlloc(GetProcessHeap(), 0, sizeof(IcoDecoder)); if (!This) return E_OUTOFMEMORY; - This->lpVtbl = &IcoDecoder_Vtbl; + This->IWICBitmapDecoder_iface.lpVtbl = &IcoDecoder_Vtbl; This->ref = 1; This->stream = NULL; This->initialized = FALSE;
1
0
0
0
← Newer
1
2
3
4
5
6
7
8
...
87
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
Results per page:
10
25
50
100
200