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 2012
----- 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
972 discussions
Start a n
N
ew thread
Francois Gouget : po: Tweak the CD-ROM Danish and Dutch translations.
by Alexandre Julliard
20 Jan '12
20 Jan '12
Module: wine Branch: master Commit: 3a6f3142448b674c6aed40f3f8ba60801d9e023b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3a6f3142448b674c6aed40f3f…
Author: Francois Gouget <fgouget(a)free.fr> Date: Thu Jan 19 23:25:06 2012 +0100 po: Tweak the CD-ROM Danish and Dutch translations. --- po/da.po | 2 +- po/nl.po | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/po/da.po b/po/da.po index f4f350d..2540dcf 100644 --- a/po/da.po +++ b/po/da.po @@ -13072,7 +13072,7 @@ msgstr "Diskettedrev" #: winecfg.rc:70 msgid "CD-ROM" -msgstr "CD-ROM" +msgstr "Cd-rom" #: winecfg.rc:71 #, fuzzy diff --git a/po/nl.po b/po/nl.po index 870e2dc..a9e1e9b 100644 --- a/po/nl.po +++ b/po/nl.po @@ -12874,7 +12874,7 @@ msgstr "Diskettestation" #: winecfg.rc:70 msgid "CD-ROM" -msgstr "CD-ROM" +msgstr "Cd-rom" #: winecfg.rc:71 msgid ""
1
0
0
0
Michael Stefaniuc : dsound: Remove the now obsolete IDirectSoundBufferImpl_Destroy().
by Alexandre Julliard
20 Jan '12
20 Jan '12
Module: wine Branch: master Commit: 84d5317302462527560d0ab6597c5d0cb3035ca2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=84d5317302462527560d0ab65…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Fri Jan 20 00:53:51 2012 +0100 dsound: Remove the now obsolete IDirectSoundBufferImpl_Destroy(). --- dlls/dsound/buffer.c | 19 +++++-------------- dlls/dsound/dsound.c | 4 ++-- dlls/dsound/dsound_private.h | 2 -- 3 files changed, 7 insertions(+), 18 deletions(-) diff --git a/dlls/dsound/buffer.c b/dlls/dsound/buffer.c index 18af3f9..630d60e 100644 --- a/dlls/dsound/buffer.c +++ b/dlls/dsound/buffer.c @@ -964,6 +964,11 @@ HRESULT IDirectSoundBufferImpl_Create( void secondarybuffer_destroy(IDirectSoundBufferImpl *This) { + ULONG ref = InterlockedIncrement(&This->numIfaces); + + if (ref > 1) + WARN("Destroying buffer with %u in use interfaces\n", ref - 1); + DirectSoundDevice_RemoveBuffer(This->device, This); RtlDeleteResource(&This->lock); @@ -981,20 +986,6 @@ void secondarybuffer_destroy(IDirectSoundBufferImpl *This) TRACE("(%p) released\n", This); } -HRESULT IDirectSoundBufferImpl_Destroy( - IDirectSoundBufferImpl *pdsb) -{ - TRACE("(%p)\n",pdsb); - - /* This keeps the *_Destroy functions from possibly deleting - * this object until it is ready to be deleted */ - InterlockedIncrement(&pdsb->numIfaces); - - secondarybuffer_destroy(pdsb); - - return S_OK; -} - HRESULT IDirectSoundBufferImpl_Duplicate( DirectSoundDevice *device, IDirectSoundBufferImpl **ppdsb, diff --git a/dlls/dsound/dsound.c b/dlls/dsound/dsound.c index b3475ad..305bfeb0 100644 --- a/dlls/dsound/dsound.c +++ b/dlls/dsound/dsound.c @@ -1244,7 +1244,7 @@ ULONG DirectSoundDevice_Release(DirectSoundDevice * device) /* The kill event should have allowed the timer process to expire * but try to grab the lock just in case. Can't hold lock because - * IDirectSoundBufferImpl_Destroy also grabs the lock */ + * secondarybuffer_destroy also grabs the lock */ RtlAcquireResourceShared(&(device->buffer_list_lock), TRUE); RtlReleaseResource(&(device->buffer_list_lock)); @@ -1256,7 +1256,7 @@ ULONG DirectSoundDevice_Release(DirectSoundDevice * device) if (device->buffers) { WARN("%d secondary buffers not released\n", device->nrofbuffers); for( i=0;i<device->nrofbuffers;i++) - IDirectSoundBufferImpl_Destroy(device->buffers[i]); + secondarybuffer_destroy(device->buffers[i]); } if (device->primary) { diff --git a/dlls/dsound/dsound_private.h b/dlls/dsound/dsound_private.h index 10bd281..a7209ca 100644 --- a/dlls/dsound/dsound_private.h +++ b/dlls/dsound/dsound_private.h @@ -199,8 +199,6 @@ HRESULT IDirectSoundBufferImpl_Create( DirectSoundDevice *device, IDirectSoundBufferImpl **ppdsb, LPCDSBUFFERDESC dsbd) DECLSPEC_HIDDEN; -HRESULT IDirectSoundBufferImpl_Destroy( - IDirectSoundBufferImpl *pdsb) DECLSPEC_HIDDEN; HRESULT IDirectSoundBufferImpl_Duplicate( DirectSoundDevice *device, IDirectSoundBufferImpl **ppdsb,
1
0
0
0
Michael Stefaniuc : dsound: Merge IDirectSoundNotify into the secondary buffer object.
by Alexandre Julliard
20 Jan '12
20 Jan '12
Module: wine Branch: master Commit: c7f5f10aab5a66a5bde93d31263afa095183c3ff URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c7f5f10aab5a66a5bde93d312…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Fri Jan 20 00:28:16 2012 +0100 dsound: Merge IDirectSoundNotify into the secondary buffer object. --- dlls/dsound/buffer.c | 138 +++++++++++++----------------------------- dlls/dsound/dsound_private.h | 9 +-- 2 files changed, 46 insertions(+), 101 deletions(-) diff --git a/dlls/dsound/buffer.c b/dlls/dsound/buffer.c index 0d03686..18af3f9 100644 --- a/dlls/dsound/buffer.c +++ b/dlls/dsound/buffer.c @@ -40,59 +40,52 @@ WINE_DEFAULT_DEBUG_CHANNEL(dsound); * IDirectSoundNotify */ -struct IDirectSoundNotifyImpl +static inline struct IDirectSoundBufferImpl *impl_from_IDirectSoundNotify(IDirectSoundNotify *iface) { - /* IUnknown fields */ - const IDirectSoundNotifyVtbl *lpVtbl; - LONG ref; - IDirectSoundBufferImpl* dsb; -}; + return CONTAINING_RECORD(iface, struct IDirectSoundBufferImpl, IDirectSoundNotify_iface); +} -static HRESULT IDirectSoundNotifyImpl_Create(IDirectSoundBufferImpl *dsb, - IDirectSoundNotifyImpl **pdsn); -static HRESULT IDirectSoundNotifyImpl_Destroy(IDirectSoundNotifyImpl *pdsn); +static HRESULT WINAPI IDirectSoundNotifyImpl_QueryInterface(IDirectSoundNotify *iface, REFIID riid, + void **ppobj) +{ + IDirectSoundBufferImpl *This = impl_from_IDirectSoundNotify(iface); -static HRESULT WINAPI IDirectSoundNotifyImpl_QueryInterface( - LPDIRECTSOUNDNOTIFY iface,REFIID riid,LPVOID *ppobj -) { - IDirectSoundNotifyImpl *This = (IDirectSoundNotifyImpl *)iface; - TRACE("(%p,%s,%p)\n",This,debugstr_guid(riid),ppobj); + TRACE("(%p,%s,%p)\n", This, debugstr_guid(riid), ppobj); - if (This->dsb == NULL) { - WARN("invalid parameter\n"); - return E_INVALIDARG; - } - - return IDirectSoundBuffer_QueryInterface((LPDIRECTSOUNDBUFFER)This->dsb, riid, ppobj); + return IDirectSoundBuffer8_QueryInterface(&This->IDirectSoundBuffer8_iface, riid, ppobj); } -static ULONG WINAPI IDirectSoundNotifyImpl_AddRef(LPDIRECTSOUNDNOTIFY iface) +static ULONG WINAPI IDirectSoundNotifyImpl_AddRef(IDirectSoundNotify *iface) { - IDirectSoundNotifyImpl *This = (IDirectSoundNotifyImpl *)iface; - ULONG ref = InterlockedIncrement(&(This->ref)); + IDirectSoundBufferImpl *This = impl_from_IDirectSoundNotify(iface); + ULONG ref = InterlockedIncrement(&This->refn); + TRACE("(%p) ref was %d\n", This, ref - 1); + + if(ref == 1) + InterlockedIncrement(&This->numIfaces); + return ref; } -static ULONG WINAPI IDirectSoundNotifyImpl_Release(LPDIRECTSOUNDNOTIFY iface) +static ULONG WINAPI IDirectSoundNotifyImpl_Release(IDirectSoundNotify *iface) { - IDirectSoundNotifyImpl *This = (IDirectSoundNotifyImpl *)iface; - ULONG ref = InterlockedDecrement(&(This->ref)); + IDirectSoundBufferImpl *This = impl_from_IDirectSoundNotify(iface); + ULONG ref = InterlockedDecrement(&This->refn); + TRACE("(%p) ref was %d\n", This, ref + 1); - if (!ref) { - This->dsb->notify = NULL; - IDirectSoundBuffer_Release((LPDIRECTSOUNDBUFFER)This->dsb); - HeapFree(GetProcessHeap(), 0, This); - TRACE("(%p) released\n", This); - } + if (!ref && !InterlockedDecrement(&This->numIfaces)) + secondarybuffer_destroy(This); + return ref; } -static HRESULT WINAPI IDirectSoundNotifyImpl_SetNotificationPositions( - LPDIRECTSOUNDNOTIFY iface,DWORD howmuch,LPCDSBPOSITIONNOTIFY notify -) { - IDirectSoundNotifyImpl *This = (IDirectSoundNotifyImpl *)iface; +static HRESULT WINAPI IDirectSoundNotifyImpl_SetNotificationPositions(IDirectSoundNotify *iface, + DWORD howmuch, const DSBPOSITIONNOTIFY *notify) +{ + IDirectSoundBufferImpl *This = impl_from_IDirectSoundNotify(iface); + TRACE("(%p,0x%08x,%p)\n",This,howmuch,notify); if (howmuch > 0 && notify == NULL) { @@ -110,20 +103,20 @@ static HRESULT WINAPI IDirectSoundNotifyImpl_SetNotificationPositions( if (howmuch > 0) { /* Make an internal copy of the caller-supplied array. * Replace the existing copy if one is already present. */ - HeapFree(GetProcessHeap(), 0, This->dsb->notifies); - This->dsb->notifies = HeapAlloc(GetProcessHeap(), 0, + HeapFree(GetProcessHeap(), 0, This->notifies); + This->notifies = HeapAlloc(GetProcessHeap(), 0, howmuch * sizeof(DSBPOSITIONNOTIFY)); - if (This->dsb->notifies == NULL) { + if (This->notifies == NULL) { WARN("out of memory\n"); return DSERR_OUTOFMEMORY; } - CopyMemory(This->dsb->notifies, notify, howmuch * sizeof(DSBPOSITIONNOTIFY)); - This->dsb->nrofnotifies = howmuch; + CopyMemory(This->notifies, notify, howmuch * sizeof(DSBPOSITIONNOTIFY)); + This->nrofnotifies = howmuch; } else { - HeapFree(GetProcessHeap(), 0, This->dsb->notifies); - This->dsb->notifies = NULL; - This->dsb->nrofnotifies = 0; + HeapFree(GetProcessHeap(), 0, This->notifies); + This->notifies = NULL; + This->nrofnotifies = 0; } return S_OK; @@ -137,40 +130,6 @@ static const IDirectSoundNotifyVtbl dsnvt = IDirectSoundNotifyImpl_SetNotificationPositions, }; -static HRESULT IDirectSoundNotifyImpl_Create( - IDirectSoundBufferImpl * dsb, - IDirectSoundNotifyImpl **pdsn) -{ - IDirectSoundNotifyImpl * dsn; - TRACE("(%p,%p)\n",dsb,pdsn); - - dsn = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*dsn)); - - if (dsn == NULL) { - WARN("out of memory\n"); - return DSERR_OUTOFMEMORY; - } - - dsn->ref = 0; - dsn->lpVtbl = &dsnvt; - dsn->dsb = dsb; - dsb->notify = dsn; - IDirectSoundBuffer_AddRef((LPDIRECTSOUNDBUFFER)dsb); - - *pdsn = dsn; - return DS_OK; -} - -static HRESULT IDirectSoundNotifyImpl_Destroy( - IDirectSoundNotifyImpl *pdsn) -{ - TRACE("(%p)\n",pdsn); - - while (IDirectSoundNotifyImpl_Release((LPDIRECTSOUNDNOTIFY)pdsn) > 0); - - return DS_OK; -} - /******************************************************************************* * IDirectSoundBuffer */ @@ -800,15 +759,9 @@ static HRESULT WINAPI IDirectSoundBufferImpl_QueryInterface(IDirectSoundBuffer8 } if ( IsEqualGUID( &IID_IDirectSoundNotify, riid ) ) { - if (!This->notify) - IDirectSoundNotifyImpl_Create(This, &(This->notify)); - if (This->notify) { - IDirectSoundNotify_AddRef((LPDIRECTSOUNDNOTIFY)This->notify); - *ppobj = This->notify; - return S_OK; - } - WARN("IID_IDirectSoundNotify\n"); - return E_NOINTERFACE; + IDirectSoundNotify_AddRef(&This->IDirectSoundNotify_iface); + *ppobj = &This->IDirectSoundNotify_iface; + return S_OK; } if ( IsEqualGUID( &IID_IDirectSound3DBuffer, riid ) ) { @@ -889,11 +842,13 @@ HRESULT IDirectSoundBufferImpl_Create( TRACE("Created buffer at %p\n", dsb); dsb->ref = 0; + dsb->refn = 0; dsb->ref3D = 0; dsb->refiks = 0; dsb->numIfaces = 0; dsb->device = device; dsb->IDirectSoundBuffer8_iface.lpVtbl = &dsbvt; + dsb->IDirectSoundNotify_iface.lpVtbl = &dsnvt; dsb->IDirectSound3DBuffer_iface.lpVtbl = &ds3dbvt; dsb->IKsPropertySet_iface.lpVtbl = &iksbvt; @@ -915,7 +870,6 @@ HRESULT IDirectSoundBufferImpl_Create( dsb->buflen = dsbd->dwBufferBytes; dsb->freq = dsbd->lpwfxFormat->nSamplesPerSec; - dsb->notify = NULL; dsb->notifies = NULL; dsb->nrofnotifies = 0; @@ -1036,12 +990,6 @@ HRESULT IDirectSoundBufferImpl_Destroy( * this object until it is ready to be deleted */ InterlockedIncrement(&pdsb->numIfaces); - if (pdsb->notify) { - WARN("notify not NULL\n"); - IDirectSoundNotifyImpl_Destroy(pdsb->notify); - pdsb->notify = NULL; - } - secondarybuffer_destroy(pdsb); return S_OK; @@ -1080,12 +1028,12 @@ HRESULT IDirectSoundBufferImpl_Duplicate( dsb->buffer->ref++; list_add_head(&dsb->buffer->buffers, &dsb->entry); dsb->ref = 0; + dsb->refn = 0; dsb->ref3D = 0; dsb->refiks = 0; dsb->numIfaces = 0; dsb->state = STATE_STOPPED; dsb->buf_mixpos = dsb->sec_mixpos = 0; - dsb->notify = NULL; dsb->notifies = NULL; dsb->nrofnotifies = 0; dsb->device = device; diff --git a/dlls/dsound/dsound_private.h b/dlls/dsound/dsound_private.h index d63ee24..10bd281 100644 --- a/dlls/dsound/dsound_private.h +++ b/dlls/dsound/dsound_private.h @@ -48,7 +48,6 @@ typedef struct IDirectSound8_IDirectSound8 IDirectSound8_IDirectSound8; typedef struct IDirectSoundBufferImpl IDirectSoundBufferImpl; typedef struct IDirectSoundCaptureImpl IDirectSoundCaptureImpl; typedef struct IDirectSoundCaptureBufferImpl IDirectSoundCaptureBufferImpl; -typedef struct IDirectSoundNotifyImpl IDirectSoundNotifyImpl; typedef struct DirectSoundDevice DirectSoundDevice; typedef struct DirectSoundCaptureDevice DirectSoundCaptureDevice; @@ -163,11 +162,12 @@ HRESULT DirectSoundDevice_VerifyCertification(DirectSoundDevice * device, struct IDirectSoundBufferImpl { IDirectSoundBuffer8 IDirectSoundBuffer8_iface; + IDirectSoundNotify IDirectSoundNotify_iface; IDirectSound3DListener IDirectSound3DListener_iface; /* only primary buffer */ IDirectSound3DBuffer IDirectSound3DBuffer_iface; /* only secondary buffer */ IKsPropertySet IKsPropertySet_iface; LONG numIfaces; /* "in use interfaces" refcount */ - LONG ref, ref3D, refiks; + LONG ref, refn, ref3D, refiks; /* IDirectSoundBufferImpl fields */ DirectSoundDevice* device; RTL_RWLOCK lock; @@ -183,12 +183,9 @@ struct IDirectSoundBufferImpl ULONG freqneeded, freqAdjust, freqAcc, freqAccNext; /* used for mixing */ DWORD primary_mixpos, buf_mixpos, sec_mixpos; - - /* IDirectSoundNotifyImpl fields */ - IDirectSoundNotifyImpl* notify; + /* IDirectSoundNotify fields */ LPDSBPOSITIONNOTIFY notifies; int nrofnotifies; - /* DirectSound3DBuffer fields */ DS3DBUFFER ds3db_ds3db; LONG ds3db_lVolume;
1
0
0
0
Frédéric Delanoy : rpcrt4: Make some switch fallthroughs explicit (Coverity).
by Alexandre Julliard
20 Jan '12
20 Jan '12
Module: wine Branch: master Commit: ca75c4a84b220d5e83c42110c7b492095db8b27c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ca75c4a84b220d5e83c42110c…
Author: Frédéric Delanoy <frederic.delanoy(a)gmail.com> Date: Fri Jan 20 09:54:24 2012 +0100 rpcrt4: Make some switch fallthroughs explicit (Coverity). --- dlls/rpcrt4/ndr_marshall.c | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/dlls/rpcrt4/ndr_marshall.c b/dlls/rpcrt4/ndr_marshall.c index f0482e6..ca73aea 100644 --- a/dlls/rpcrt4/ndr_marshall.c +++ b/dlls/rpcrt4/ndr_marshall.c @@ -1179,7 +1179,8 @@ static unsigned char * EmbeddedPointerMarshall(PMIDL_STUB_MESSAGE pStubMsg, while (pFormat[0] != RPC_FC_END) { switch (pFormat[0]) { default: - FIXME("unknown repeat type %d\n", pFormat[0]); + FIXME("unknown repeat type %d; assuming no repeat\n", pFormat[0]); + /* fallthrough */ case RPC_FC_NO_REPEAT: rep = 1; stride = 0; @@ -1259,7 +1260,8 @@ static unsigned char * EmbeddedPointerUnmarshall(PMIDL_STUB_MESSAGE pStubMsg, TRACE("pFormat[0] = 0x%x\n", pFormat[0]); switch (pFormat[0]) { default: - FIXME("unknown repeat type %d\n", pFormat[0]); + FIXME("unknown repeat type %d; assuming no repeat\n", pFormat[0]); + /* fallthrough */ case RPC_FC_NO_REPEAT: rep = 1; stride = 0; @@ -1333,7 +1335,8 @@ static void EmbeddedPointerBufferSize(PMIDL_STUB_MESSAGE pStubMsg, while (pFormat[0] != RPC_FC_END) { switch (pFormat[0]) { default: - FIXME("unknown repeat type %d\n", pFormat[0]); + FIXME("unknown repeat type %d; assuming no repeat\n", pFormat[0]); + /* fallthrough */ case RPC_FC_NO_REPEAT: rep = 1; stride = 0; @@ -1405,7 +1408,8 @@ static ULONG EmbeddedPointerMemorySize(PMIDL_STUB_MESSAGE pStubMsg, while (pFormat[0] != RPC_FC_END) { switch (pFormat[0]) { default: - FIXME("unknown repeat type %d\n", pFormat[0]); + FIXME("unknown repeat type %d; assuming no repeat\n", pFormat[0]); + /* fallthrough */ case RPC_FC_NO_REPEAT: rep = 1; stride = 0; @@ -1463,7 +1467,8 @@ static void EmbeddedPointerFree(PMIDL_STUB_MESSAGE pStubMsg, while (pFormat[0] != RPC_FC_END) { switch (pFormat[0]) { default: - FIXME("unknown repeat type %d\n", pFormat[0]); + FIXME("unknown repeat type %d; assuming no repeat\n", pFormat[0]); + /* fallthrough */ case RPC_FC_NO_REPEAT: rep = 1; stride = 0;
1
0
0
0
Hans Leidekker : winhttp: Download PAC scripts in a separate session.
by Alexandre Julliard
20 Jan '12
20 Jan '12
Module: wine Branch: master Commit: f37b94e69a92ae1f5c984f51f7df6110831ab083 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f37b94e69a92ae1f5c984f51f…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Fri Jan 20 09:04:51 2012 +0100 winhttp: Download PAC scripts in a separate session. --- dlls/winhttp/session.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dlls/winhttp/session.c b/dlls/winhttp/session.c index b4ed568..2d899ab 100644 --- a/dlls/winhttp/session.c +++ b/dlls/winhttp/session.c @@ -1905,11 +1905,11 @@ done: return ret; } -static BSTR download_script( HINTERNET ses, const WCHAR *url ) +static BSTR download_script( const WCHAR *url ) { static const WCHAR typeW[] = {'*','/','*',0}; static const WCHAR *acceptW[] = {typeW, NULL}; - HINTERNET con, req = NULL; + HINTERNET ses, con = NULL, req = NULL; WCHAR *hostname; URL_COMPONENTSW uc; DWORD size = 4096, offset, to_read, bytes_read, flags = 0; @@ -1924,6 +1924,7 @@ static BSTR download_script( HINTERNET ses, const WCHAR *url ) memcpy( hostname, uc.lpszHostName, uc.dwHostNameLength * sizeof(WCHAR) ); hostname[uc.dwHostNameLength] = 0; + if (!(ses = WinHttpOpen( NULL, WINHTTP_ACCESS_TYPE_NO_PROXY, NULL, NULL, 0 ))) goto done; if (!(con = WinHttpConnect( ses, hostname, uc.nPort, 0 ))) goto done; if (uc.nScheme == INTERNET_SCHEME_HTTPS) flags |= WINHTTP_FLAG_SECURE; if (!(req = WinHttpOpenRequest( con, NULL, uc.lpszUrlPath, NULL, NULL, acceptW, flags ))) goto done; @@ -1955,6 +1956,7 @@ static BSTR download_script( HINTERNET ses, const WCHAR *url ) done: WinHttpCloseHandle( req ); WinHttpCloseHandle( con ); + WinHttpCloseHandle( ses ); heap_free( buffer ); heap_free( hostname ); if (!script) set_last_error( ERROR_WINHTTP_UNABLE_TO_DOWNLOAD_SCRIPT ); @@ -2005,7 +2007,7 @@ BOOL WINAPI WinHttpGetProxyForUrl( HINTERNET hsession, LPCWSTR url, WINHTTP_AUTO if (options->dwFlags & WINHTTP_AUTOPROXY_CONFIG_URL) pac_url = options->lpszAutoConfigUrl; else pac_url = detected_pac_url; - if (!(script = download_script( hsession, pac_url ))) goto done; + if (!(script = download_script( pac_url ))) goto done; ret = run_script( script, url, info ); SysFreeString( script );
1
0
0
0
Nikolay Sivov : msxml3: Move some xdr tests data to a table.
by Alexandre Julliard
20 Jan '12
20 Jan '12
Module: wine Branch: master Commit: 7c319885547f700da7dbe098efaacbbdaf9e65e2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7c319885547f700da7dbe098e…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Fri Jan 20 04:01:36 2012 +0300 msxml3: Move some xdr tests data to a table. --- dlls/msxml3/tests/schema.c | 972 +++++++++----------------------------------- 1 files changed, 193 insertions(+), 779 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=7c319885547f700da7dbe…
1
0
0
0
Nikolay Sivov : msxml3: Use debugstr_* functions instead of wine_* prefixed for consistency.
by Alexandre Julliard
20 Jan '12
20 Jan '12
Module: wine Branch: master Commit: ae5c984b12f8810c866c08084d9f0b66326c31d3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ae5c984b12f8810c866c08084…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Fri Jan 20 04:00:47 2012 +0300 msxml3: Use debugstr_* functions instead of wine_* prefixed for consistency. --- dlls/msxml3/domdoc.c | 10 +++++----- dlls/msxml3/schema.c | 10 +++++----- dlls/msxml3/selection.c | 2 +- dlls/msxml3/stylesheet.c | 8 ++++---- dlls/msxml3/xslpattern.l | 4 ++-- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/dlls/msxml3/domdoc.c b/dlls/msxml3/domdoc.c index 8943507..72f9a31 100644 --- a/dlls/msxml3/domdoc.c +++ b/dlls/msxml3/domdoc.c @@ -2828,7 +2828,7 @@ static HRESULT WINAPI domdoc_setProperty( { hr = E_FAIL; WARN("Syntax error in xmlns string: %s\n\tat token: %s\n", - wine_dbgstr_w(bstr), wine_dbgstr_an((const char*)pTokBegin, pTokEnd-pTokBegin)); + debugstr_w(bstr), debugstr_an((const char*)pTokBegin, pTokEnd-pTokBegin)); continue; } @@ -2849,7 +2849,7 @@ static HRESULT WINAPI domdoc_setProperty( { hr = E_FAIL; WARN("Syntax error in xmlns string: %s\n\tat token: %s\n", - wine_dbgstr_w(bstr), wine_dbgstr_an((const char*)pTokBegin, pTokEnd-pTokBegin)); + debugstr_w(bstr), debugstr_an((const char*)pTokBegin, pTokEnd-pTokBegin)); continue; } @@ -2876,7 +2876,7 @@ static HRESULT WINAPI domdoc_setProperty( else { WARN("Syntax error in xmlns string: %s\n\tat token: %s\n", - wine_dbgstr_w(bstr), wine_dbgstr_an((const char*)pTokInner, pTokEnd-pTokInner)); + debugstr_w(bstr), debugstr_an((const char*)pTokInner, pTokEnd-pTokInner)); list_add_tail(pNsList, &ns_entry->entry); ns_entry = NULL; @@ -2906,7 +2906,7 @@ static HRESULT WINAPI domdoc_setProperty( return S_OK; } - FIXME("Unknown property %s\n", wine_dbgstr_w(p)); + FIXME("Unknown property %s\n", debugstr_w(p)); return E_FAIL; } @@ -2966,7 +2966,7 @@ static HRESULT WINAPI domdoc_getProperty( return S_OK; } - FIXME("Unknown property %s\n", wine_dbgstr_w(p)); + FIXME("Unknown property %s\n", debugstr_w(p)); return E_FAIL; } diff --git a/dlls/msxml3/schema.c b/dlls/msxml3/schema.c index 2312f6d..2c97639 100644 --- a/dlls/msxml3/schema.c +++ b/dlls/msxml3/schema.c @@ -589,7 +589,7 @@ HRESULT dt_validate(XDR_DT dt, xmlChar const* content) xmlNsPtr ns; HRESULT hr; - TRACE("(dt:%s, %s)\n", debugstr_dt(dt), wine_dbgstr_a((char const*)content)); + TRACE("(dt:%s, %s)\n", debugstr_dt(dt), debugstr_a((char const*)content)); if (!datatypes_schema) { @@ -688,7 +688,7 @@ static xmlParserInputPtr external_entity_loader(const char *URL, const char *ID, { xmlParserInputPtr input; - TRACE("(%s %s %p)\n", wine_dbgstr_a(URL), wine_dbgstr_a(ID), ctxt); + TRACE("(%s %s %p)\n", debugstr_a(URL), debugstr_a(ID), ctxt); assert(MSXML_hInstance != NULL); assert(datatypes_rsrc != NULL); @@ -922,7 +922,7 @@ static cache_entry* cache_entry_from_url(VARIANT url, xmlChar const* nsURI, MSXM ERR("IXMLDOMDocument3_load() returned 0x%08x\n", hr); if (b != VARIANT_TRUE) { - FIXME("Failed to load doc at %s\n", wine_dbgstr_w(V_BSTR(&url))); + FIXME("Failed to load doc at %s\n", debugstr_w(V_BSTR(&url))); IXMLDOMDocument3_Release(domdoc); return NULL; } @@ -1142,7 +1142,7 @@ static HRESULT WINAPI schema_cache_get(IXMLDOMSchemaCollection2* iface, BSTR uri cache_entry* entry; xmlChar* name; - TRACE("(%p)->(%s %p)\n", This, wine_dbgstr_w(uri), node); + TRACE("(%p)->(%s %p)\n", This, debugstr_w(uri), node); if (This->version == MSXML6) return E_NOTIMPL; @@ -1165,7 +1165,7 @@ static HRESULT WINAPI schema_cache_remove(IXMLDOMSchemaCollection2* iface, BSTR { schema_cache* This = impl_from_IXMLDOMSchemaCollection2(iface); xmlChar* name = uri ? xmlchar_from_wchar(uri) : xmlchar_from_wchar(emptyW); - TRACE("(%p)->(%s)\n", This, wine_dbgstr_w(uri)); + TRACE("(%p)->(%s)\n", This, debugstr_w(uri)); xmlHashRemoveEntry(This->cache, name, cache_free); heap_free(name); diff --git a/dlls/msxml3/selection.c b/dlls/msxml3/selection.c index 8871817..ba173f9 100644 --- a/dlls/msxml3/selection.c +++ b/dlls/msxml3/selection.c @@ -749,7 +749,7 @@ HRESULT create_selection(xmlNodePtr node, xmlChar* query, IXMLDOMNodeList **out) xmlXPathContextPtr ctxt = xmlXPathNewContext(node->doc); HRESULT hr; - TRACE("(%p, %s, %p)\n", node, wine_dbgstr_a((char const*)query), out); + TRACE("(%p, %s, %p)\n", node, debugstr_a((char const*)query), out); *out = NULL; if (!This || !ctxt || !query) diff --git a/dlls/msxml3/stylesheet.c b/dlls/msxml3/stylesheet.c index 5ee71af..9106b40 100644 --- a/dlls/msxml3/stylesheet.c +++ b/dlls/msxml3/stylesheet.c @@ -418,7 +418,7 @@ static HRESULT WINAPI xslprocessor_setStartMode( { xslprocessor *This = impl_from_IXSLProcessor( iface ); - FIXME("(%p)->(%s %s): stub\n", This, wine_dbgstr_w(p), wine_dbgstr_w(uri)); + FIXME("(%p)->(%s %s): stub\n", This, debugstr_w(p), debugstr_w(uri)); return E_NOTIMPL; } @@ -557,8 +557,8 @@ static HRESULT WINAPI xslprocessor_addParameter( { xslprocessor *This = impl_from_IXSLProcessor( iface ); - FIXME("(%p)->(%s %s %s): stub\n", This, wine_dbgstr_w(p), debugstr_variant(&var), - wine_dbgstr_w(uri)); + FIXME("(%p)->(%s %s %s): stub\n", This, debugstr_w(p), debugstr_variant(&var), + debugstr_w(uri)); return E_NOTIMPL; } @@ -569,7 +569,7 @@ static HRESULT WINAPI xslprocessor_addObject( { xslprocessor *This = impl_from_IXSLProcessor( iface ); - FIXME("(%p)->(%p %s): stub\n", This, obj, wine_dbgstr_w(uri)); + FIXME("(%p)->(%p %s): stub\n", This, obj, debugstr_w(uri)); return E_NOTIMPL; } diff --git a/dlls/msxml3/xslpattern.l b/dlls/msxml3/xslpattern.l index caea1be..eb84e40 100644 --- a/dlls/msxml3/xslpattern.l +++ b/dlls/msxml3/xslpattern.l @@ -155,7 +155,7 @@ ANY (.) xmlChar* XSLPattern_to_XPath(xmlXPathContextPtr ctxt, xmlChar const* xslpat_str) { parser_param p; - TRACE("(%s)\n", wine_dbgstr_a((char const*)xslpat_str)); + TRACE("(%s)\n", debugstr_a((char const*)xslpat_str)); memset(&p, 0, sizeof(parser_param)); p.ctx = ctxt; p.in = xslpat_str; @@ -166,7 +166,7 @@ xmlChar* XSLPattern_to_XPath(xmlXPathContextPtr ctxt, xmlChar const* xslpat_str) xslpattern_parse(&p, p.yyscanner); - TRACE("=> %s\n", wine_dbgstr_a((char const*)p.out)); + TRACE("=> %s\n", debugstr_a((char const*)p.out)); xslpattern_lex_destroy(p.yyscanner); if (p.err)
1
0
0
0
Nikolay Sivov : msxml3: IXMLDOMSchemaCollection::get() is a stub for version 6.
by Alexandre Julliard
20 Jan '12
20 Jan '12
Module: wine Branch: master Commit: ca046f9eb5ca9f0ca4cb05044fcd866dff10c4a7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ca046f9eb5ca9f0ca4cb05044…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Fri Jan 20 04:00:23 2012 +0300 msxml3: IXMLDOMSchemaCollection::get() is a stub for version 6. --- dlls/msxml3/domdoc.c | 7 +++- dlls/msxml3/schema.c | 7 +++- dlls/msxml3/tests/domdoc.c | 81 ++++++++++++++++++++++++++++++++++++++++++++ dlls/msxml3/tests/schema.c | 36 +++++++++++++++++++ 4 files changed, 127 insertions(+), 4 deletions(-) diff --git a/dlls/msxml3/domdoc.c b/dlls/msxml3/domdoc.c index 47ce60d..8943507 100644 --- a/dlls/msxml3/domdoc.c +++ b/dlls/msxml3/domdoc.c @@ -2508,10 +2508,13 @@ static HRESULT WINAPI domdoc_put_onTransformNode( static HRESULT WINAPI domdoc_get_namespaces( IXMLDOMDocument3* iface, - IXMLDOMSchemaCollection** schemaCollection ) + IXMLDOMSchemaCollection** collection ) { domdoc *This = impl_from_IXMLDOMDocument3( iface ); - FIXME("(%p)->(%p)\n", This, schemaCollection); + FIXME("(%p)->(%p): stub\n", This, collection); + + if (!collection) return E_POINTER; + return E_NOTIMPL; } diff --git a/dlls/msxml3/schema.c b/dlls/msxml3/schema.c index 7473dbb..2312f6d 100644 --- a/dlls/msxml3/schema.c +++ b/dlls/msxml3/schema.c @@ -1139,10 +1139,13 @@ static HRESULT WINAPI schema_cache_get(IXMLDOMSchemaCollection2* iface, BSTR uri IXMLDOMNode** node) { schema_cache* This = impl_from_IXMLDOMSchemaCollection2(iface); - xmlChar* name; cache_entry* entry; + xmlChar* name; + TRACE("(%p)->(%s %p)\n", This, wine_dbgstr_w(uri), node); + if (This->version == MSXML6) return E_NOTIMPL; + if (!node) return E_POINTER; @@ -1438,7 +1441,7 @@ HRESULT SchemaCache_create(MSXML_VERSION version, IUnknown* outer, void** obj) #else -HRESULT SchemaCache_create(MSXML_VERSION version, IUnknown* pUnkOuter, void** ppObj) +HRESULT SchemaCache_create(MSXML_VERSION version, IUnknown* outer, void** obj) { MESSAGE("This program tried to use a SchemaCache object, but\n" "libxml2 support was not present at compile time.\n"); diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c index 21809f8..cc01a25 100644 --- a/dlls/msxml3/tests/domdoc.c +++ b/dlls/msxml3/tests/domdoc.c @@ -11140,6 +11140,86 @@ static void test_nodeValue(void) IXMLDOMDocument_Release(doc); } +static char namespacesA[] = +"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>" +" <ns1:elem1 xmlns:ns1=\"
http://blah.org\
">" +" <ns1:elem2/>" +" <ns1:elem3/>" +" <ns1:elem4/>" +" <elem5 xmlns=\"
http://blahblah.org\
"/>" +" <ns1:elem6>true</ns1:elem6>" +" </ns1:elem1>"; + +static void test_get_namespaces(void) +{ + IXMLDOMSchemaCollection *collection, *collection2; + IXMLDOMDocument2 *doc; + IXMLDOMNode *node; + VARIANT_BOOL b; + HRESULT hr; + LONG len; + + doc = create_document(&IID_IXMLDOMDocument2); + if (!doc) return; + + /* null pointer */ + hr = IXMLDOMDocument2_get_namespaces(doc, NULL); + EXPECT_HR(hr, E_POINTER); + + /* no document loaded */ + collection = (void*)0xdeadbeef; + hr = IXMLDOMDocument2_get_namespaces(doc, &collection); +todo_wine + EXPECT_HR(hr, S_OK); + if (hr != S_OK) + { + IXMLDOMDocument_Release(doc); + return; + } + EXPECT_REF(collection, 2); + + collection2 = (void*)0xdeadbeef; + hr = IXMLDOMDocument2_get_namespaces(doc, &collection2); + EXPECT_HR(hr, S_OK); + ok(collection == collection2, "got %p\n", collection2); + EXPECT_REF(collection, 3); + IXMLDOMSchemaCollection_Release(collection); + + len = -1; + hr = IXMLDOMSchemaCollection_get_length(collection, &len); + EXPECT_HR(hr, S_OK); + ok(len == 0, "got %d\n", len); + IXMLDOMSchemaCollection_Release(collection); + + /* now with document */ + hr = IXMLDOMDocument2_loadXML(doc, _bstr_(namespacesA), &b); + EXPECT_HR(hr, S_OK); + + hr = IXMLDOMDocument2_get_namespaces(doc, &collection); + EXPECT_HR(hr, S_OK); + + len = -1; + hr = IXMLDOMSchemaCollection_get_length(collection, &len); + EXPECT_HR(hr, S_OK); + ok(len == 2, "got %d\n", len); + + /* try to lookup some uris */ + node = (void*)0xdeadbeef; + hr = IXMLDOMSchemaCollection_get(collection, _bstr_("
http://blah.org
"), &node); + EXPECT_HR(hr, S_OK); + ok(node == NULL, "got %p\n", node); + + node = (void*)0xdeadbeef; + hr = IXMLDOMSchemaCollection_get(collection, _bstr_("
http://blah1.org
"), &node); + EXPECT_HR(hr, S_OK); + ok(node == NULL, "got %p\n", node); + + IXMLDOMSchemaCollection_Release(collection); + + IXMLDOMDocument2_Release(doc); + free_bstrs(); +} + START_TEST(domdoc) { IXMLDOMDocument *doc; @@ -11216,6 +11296,7 @@ START_TEST(domdoc) test_getAttributeNode(); test_supporterrorinfo(); test_nodeValue(); + test_get_namespaces(); test_xsltemplate(); diff --git a/dlls/msxml3/tests/schema.c b/dlls/msxml3/tests/schema.c index 59ceac5..e819264 100644 --- a/dlls/msxml3/tests/schema.c +++ b/dlls/msxml3/tests/schema.c @@ -2061,6 +2061,41 @@ static void test_dispex(void) IXMLDOMSchemaCollection_Release(cache); } +static void test_get(void) +{ + static const WCHAR uriW[] = {'u','r','i',0}; + IXMLDOMSchemaCollection2 *cache; + IXMLDOMNode *node; + HRESULT hr; + BSTR s; + + cache = create_cache_version(60, &IID_IXMLDOMSchemaCollection2); + if (!cache) return; + + hr = IXMLDOMSchemaCollection2_get(cache, NULL, NULL); + EXPECT_HR(hr, E_NOTIMPL); + + s = SysAllocString(uriW); + hr = IXMLDOMSchemaCollection2_get(cache, s, &node); + EXPECT_HR(hr, E_NOTIMPL); + SysFreeString(s); + + IXMLDOMSchemaCollection2_Release(cache); + + cache = create_cache_version(40, &IID_IXMLDOMSchemaCollection2); + if (!cache) return; + + hr = IXMLDOMSchemaCollection2_get(cache, NULL, NULL); + EXPECT_HR(hr, E_POINTER); + + s = SysAllocString(uriW); + hr = IXMLDOMSchemaCollection2_get(cache, s, &node); + EXPECT_HR(hr, S_OK); + SysFreeString(s); + + IXMLDOMSchemaCollection2_Release(cache); +} + START_TEST(schema) { HRESULT r; @@ -2076,6 +2111,7 @@ START_TEST(schema) test_XDR_datatypes(); test_validate_on_load(); test_dispex(); + test_get(); CoUninitialize(); }
1
0
0
0
Henri Verbeet : wined3d: Rename WineD3DRectPatch to wined3d_rect_patch.
by Alexandre Julliard
20 Jan '12
20 Jan '12
Module: wine Branch: master Commit: 1ec21e323ba19165fd720dbdeb83e3bfb2219d3b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1ec21e323ba19165fd720dbde…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Fri Jan 20 00:36:29 2012 +0100 wined3d: Rename WineD3DRectPatch to wined3d_rect_patch. --- dlls/wined3d/device.c | 16 +++++++++------- dlls/wined3d/drawprim.c | 2 +- dlls/wined3d/wined3d_private.h | 4 ++-- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 6847f81..f56d027 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -1443,12 +1443,14 @@ HRESULT CDECL wined3d_device_uninit_3d(struct wined3d_device *device) } TRACE("Deleting high order patches\n"); - for(i = 0; i < PATCHMAP_SIZE; i++) { + for (i = 0; i < PATCHMAP_SIZE; ++i) + { + struct wined3d_rect_patch *patch; struct list *e1, *e2; - struct WineD3DRectPatch *patch; + LIST_FOR_EACH_SAFE(e1, e2, &device->patches[i]) { - patch = LIST_ENTRY(e1, struct WineD3DRectPatch, entry); + patch = LIST_ENTRY(e1, struct wined3d_rect_patch, entry); wined3d_device_delete_patch(device, patch->Handle); } } @@ -4633,7 +4635,7 @@ HRESULT CDECL wined3d_device_update_surface(struct wined3d_device *device, HRESULT CDECL wined3d_device_draw_rect_patch(struct wined3d_device *device, UINT handle, const float *num_segs, const struct wined3d_rect_patch_info *rect_patch_info) { - struct WineD3DRectPatch *patch; + struct wined3d_rect_patch *patch; GLenum old_primitive_type; unsigned int i; struct list *e; @@ -4655,7 +4657,7 @@ HRESULT CDECL wined3d_device_draw_rect_patch(struct wined3d_device *device, UINT found = FALSE; LIST_FOR_EACH(e, &device->patches[i]) { - patch = LIST_ENTRY(e, struct WineD3DRectPatch, entry); + patch = LIST_ENTRY(e, struct wined3d_rect_patch, entry); if (patch->Handle == handle) { found = TRUE; @@ -4739,7 +4741,7 @@ HRESULT CDECL wined3d_device_draw_tri_patch(struct wined3d_device *device, UINT HRESULT CDECL wined3d_device_delete_patch(struct wined3d_device *device, UINT handle) { - struct WineD3DRectPatch *patch; + struct wined3d_rect_patch *patch; struct list *e; int i; @@ -4748,7 +4750,7 @@ HRESULT CDECL wined3d_device_delete_patch(struct wined3d_device *device, UINT ha i = PATCHMAP_HASHFUNC(handle); LIST_FOR_EACH(e, &device->patches[i]) { - patch = LIST_ENTRY(e, struct WineD3DRectPatch, entry); + patch = LIST_ENTRY(e, struct wined3d_rect_patch, entry); if (patch->Handle == handle) { TRACE("Deleting patch %p\n", patch); diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c index a5e81db..6c67ada 100644 --- a/dlls/wined3d/drawprim.c +++ b/dlls/wined3d/drawprim.c @@ -788,7 +788,7 @@ static void normalize_normal(float *n) { * responsible of taking care that either the gl states are restored, or the context activated * for drawing to reset the lastWasBlit flag. */ -HRESULT tesselate_rectpatch(struct wined3d_device *This, struct WineD3DRectPatch *patch) +HRESULT tesselate_rectpatch(struct wined3d_device *This, struct wined3d_rect_patch *patch) { unsigned int i, j, num_quads, out_vertex_size, buffer_size, d3d_out_vertex_size; const struct wined3d_rect_patch_info *info = &patch->rect_patch_info; diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index 2682f7e..b218ca7 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -1577,7 +1577,7 @@ extern void add_gl_compat_wrappers(struct wined3d_gl_info *gl_info) DECLSPEC_HID /***************************************************************************** * High order patch management */ -struct WineD3DRectPatch +struct wined3d_rect_patch { UINT Handle; float *mem; @@ -1588,7 +1588,7 @@ struct WineD3DRectPatch struct list entry; }; -HRESULT tesselate_rectpatch(struct wined3d_device *device, struct WineD3DRectPatch *patch) DECLSPEC_HIDDEN; +HRESULT tesselate_rectpatch(struct wined3d_device *device, struct wined3d_rect_patch *patch) DECLSPEC_HIDDEN; enum projection_types {
1
0
0
0
Henri Verbeet : wined3d: Get rid of the WINED3DSURFTYPE typedef.
by Alexandre Julliard
20 Jan '12
20 Jan '12
Module: wine Branch: master Commit: 3769afa33d5ff7dacf9fd4899e99c8400b6c53c5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3769afa33d5ff7dacf9fd4899…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Fri Jan 20 00:36:28 2012 +0100 wined3d: Get rid of the WINED3DSURFTYPE typedef. --- dlls/d3d10core/texture.c | 2 +- dlls/d3d8/directx.c | 2 +- dlls/d3d8/surface.c | 2 +- dlls/d3d8/swapchain.c | 2 +- dlls/d3d9/directx.c | 2 +- dlls/d3d9/surface.c | 2 +- dlls/d3d9/swapchain.c | 2 +- dlls/ddraw/ddraw.c | 19 ++++++++++--------- dlls/ddraw/ddraw_private.h | 2 +- dlls/ddraw/device.c | 6 +++--- dlls/ddraw/main.c | 6 +++--- dlls/dxgi/swapchain.c | 2 +- dlls/wined3d/device.c | 2 +- dlls/wined3d/directx.c | 15 ++++++++------- dlls/wined3d/surface.c | 13 +++++++------ dlls/wined3d/swapchain.c | 16 +++++++--------- dlls/wined3d/wined3d_private.h | 2 +- include/wine/wined3d.h | 17 +++++++++-------- 18 files changed, 58 insertions(+), 56 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=3769afa33d5ff7dacf9fd…
1
0
0
0
← Newer
1
...
31
32
33
34
35
36
37
...
98
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
Results per page:
10
25
50
100
200