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
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
September 2007
----- 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
7 participants
787 discussions
Start a n
N
ew thread
Juan Lang : crypt32: Test that the end cert in a chain's store isn' t implicitly searched for issuers.
by Alexandre Julliard
10 Sep '07
10 Sep '07
Module: wine Branch: master Commit: 192ed7353d15dbd45047945ce8813f9b6cb3b77a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=192ed7353d15dbd45047945ce…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Thu Sep 6 09:57:04 2007 -0700 crypt32: Test that the end cert in a chain's store isn't implicitly searched for issuers. --- dlls/crypt32/tests/chain.c | 62 ++++++++++++++++++++++++++++++++++++-------- 1 files changed, 51 insertions(+), 11 deletions(-) diff --git a/dlls/
…
[View More]
crypt32/tests/chain.c b/dlls/crypt32/tests/chain.c index 818491f..0698e2c 100644 --- a/dlls/crypt32/tests/chain.c +++ b/dlls/crypt32/tests/chain.c @@ -1131,16 +1131,18 @@ typedef struct _CONST_BLOB_ARRAY CONST_DATA_BLOB *rgBlob; } CONST_BLOB_ARRAY; -#define TODO_CHAIN 1 -#define TODO_ERROR 2 -#define TODO_INFO 4 +#define TODO_CHAIN 1 +#define TODO_ERROR 2 +#define TODO_INFO 4 +#define TODO_ELEMENTS 8 /* Gets a certificate chain built from a store containing all the certs in * certArray, where the last certificate in the chain is expected to be the * end certificate (the one from which the chain is built.) */ static PCCERT_CHAIN_CONTEXT getChain(const CONST_BLOB_ARRAY *certArray, - DWORD flags, LPSYSTEMTIME checkTime, DWORD todo, DWORD testIndex) + DWORD flags, BOOL includeStore, LPSYSTEMTIME checkTime, DWORD todo, + DWORD testIndex) { HCERTSTORE store; PCCERT_CHAIN_CONTEXT chain = NULL; @@ -1178,8 +1180,8 @@ static PCCERT_CHAIN_CONTEXT getChain(const CONST_BLOB_ARRAY *certArray, FILETIME fileTime; SystemTimeToFileTime(checkTime, &fileTime); - ret = CertGetCertificateChain(NULL, endCert, &fileTime, store, - &chainPara, flags, NULL, &chain); + ret = CertGetCertificateChain(NULL, endCert, &fileTime, + includeStore ? store : NULL, &chainPara, flags, NULL, &chain); if (todo & TODO_CHAIN) todo_wine ok(ret, "Chain %d: CertGetCertificateChain failed: %08x\n", testIndex, GetLastError()); @@ -1203,9 +1205,14 @@ static void checkSimpleChainStatus(const CERT_SIMPLE_CHAIN *simpleChain, const SimpleChainStatusCheck *simpleChainStatus, const CERT_TRUST_STATUS *ignore, DWORD todo, DWORD testIndex, DWORD chainIndex) { - ok(simpleChain->cElement == simpleChainStatus->cElement, - "Chain %d: expected %d elements, got %d\n", testIndex, - simpleChainStatus->cElement, simpleChain->cElement); + if (todo & TODO_ELEMENTS) + todo_wine ok(simpleChain->cElement == simpleChainStatus->cElement, + "Chain %d: expected %d elements, got %d\n", testIndex, + simpleChainStatus->cElement, simpleChain->cElement); + else + ok(simpleChain->cElement == simpleChainStatus->cElement, + "Chain %d: expected %d elements, got %d\n", testIndex, + simpleChainStatus->cElement, simpleChain->cElement); if (simpleChain->cElement == simpleChainStatus->cElement) { DWORD i; @@ -1558,6 +1565,27 @@ static ChainCheck chainCheck[] = { TODO_INFO }, }; +static const CERT_TRUST_STATUS elementStatus8NoStore[] = { + { CERT_TRUST_NO_ERROR, CERT_TRUST_HAS_NAME_MATCH_ISSUER }, +}; +static const SimpleChainStatusCheck simpleStatus8NoStore[] = { + { sizeof(elementStatus8NoStore) / sizeof(elementStatus8NoStore[0]), + elementStatus8NoStore }, +}; +static ChainCheck chainCheckNoStore[] = { + { { sizeof(selfSignedChain) / sizeof(selfSignedChain[0]), selfSignedChain }, + { { 0, CERT_TRUST_HAS_PREFERRED_ISSUER }, + { CERT_TRUST_IS_NOT_TIME_VALID | CERT_TRUST_IS_UNTRUSTED_ROOT, 0 }, + 1, selfSignedSimpleStatus }, + TODO_ERROR | TODO_INFO }, + { { sizeof(chain8) / sizeof(chain8[0]), chain8 }, + { { 0, CERT_TRUST_HAS_PREFERRED_ISSUER }, + { CERT_TRUST_INVALID_BASIC_CONSTRAINTS | CERT_TRUST_IS_UNTRUSTED_ROOT | + CERT_TRUST_IS_NOT_TIME_VALID, 0 }, + 1, simpleStatus8NoStore }, + TODO_ELEMENTS | TODO_ERROR | TODO_INFO }, +}; + /* Wednesday, Oct 1, 2007 */ static SYSTEMTIME oct2007 = { 2007, 10, 1, 1, 0, 0, 0, 0 }; @@ -1604,8 +1632,8 @@ static void testGetCertChain(void) for (i = 0; i < sizeof(chainCheck) / sizeof(chainCheck[0]); i++) { - chain = getChain(&chainCheck[i].certs, 0, &oct2007, chainCheck[i].todo, - i); + chain = getChain(&chainCheck[i].certs, 0, TRUE, &oct2007, + chainCheck[i].todo, i); if (chain) { checkChainStatus(chain, &chainCheck[i].status, chainCheck[i].todo, @@ -1613,6 +1641,18 @@ static void testGetCertChain(void) CertFreeCertificateChain(chain); } } + for (i = 0; i < sizeof(chainCheckNoStore) / sizeof(chainCheckNoStore[0]); + i++) + { + chain = getChain(&chainCheckNoStore[i].certs, 0, FALSE, &oct2007, + chainCheckNoStore[i].todo, i); + if (chain) + { + checkChainStatus(chain, &chainCheckNoStore[i].status, + chainCheckNoStore[i].todo, i); + CertFreeCertificateChain(chain); + } + } } START_TEST(chain)
[View Less]
1
0
0
0
Juan Lang : crypt32: Add more tests for getting issuer cert from store.
by Alexandre Julliard
10 Sep '07
10 Sep '07
Module: wine Branch: master Commit: 6aa03fc4c314671234975aecdb1afa81233d7427 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6aa03fc4c314671234975aecd…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Thu Sep 6 09:56:37 2007 -0700 crypt32: Add more tests for getting issuer cert from store. Show that certificates are added to memory stores at the head rather than the tail. --- dlls/crypt32/context.c | 2 +- dlls/crypt32/tests/cert.c | 174 +++++++++++++++++++++++++++
…
[View More]
+++++++++++++++++- 2 files changed, 174 insertions(+), 2 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=6aa03fc4c314671234975…
[View Less]
1
0
0
0
Jeff Latimer : cabinet: Remove unnecessary function.
by Alexandre Julliard
10 Sep '07
10 Sep '07
Module: wine Branch: master Commit: 30892c8b8d81790428a9ddc6ef1209778695067c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=30892c8b8d81790428a9ddc6e…
Author: Jeff Latimer <lats(a)yless4u.com.au> Date: Thu Sep 6 20:41:52 2007 +1000 cabinet: Remove unnecessary function. --- dlls/cabinet/fdi.c | 33 ++++++++------------------------- 1 files changed, 8 insertions(+), 25 deletions(-) diff --git a/dlls/cabinet/fdi.c b/dlls/cabinet/fdi.c index eea6218..1056d5f 100644 --- a/
…
[View More]
dlls/cabinet/fdi.c +++ b/dlls/cabinet/fdi.c @@ -412,26 +412,6 @@ static long FDI_getoffset(HFDI hfdi, INT_PTR hf) } /********************************************************************** - * FDI_realloc (internal) - * - * we can't use _msize; the user might not be using malloc, so we require - * an explicit specification of the previous size. inefficient. - */ -static void *FDI_realloc(HFDI hfdi, void *mem, size_t prevsize, size_t newsize) -{ - void *rslt = NULL; - char *irslt, *imem; - size_t copysize = (prevsize < newsize) ? prevsize : newsize; - if (prevsize == newsize) return mem; - rslt = PFDI_ALLOC(hfdi, newsize); - if (rslt) - for (irslt = (char *)rslt, imem = (char *)mem; (copysize); copysize--) - *irslt++ = *imem++; - PFDI_FREE(hfdi, mem); - return rslt; -} - -/********************************************************************** * FDI_read_string (internal) * * allocate and read an arbitrarily long string from the cabinet @@ -439,19 +419,17 @@ static void *FDI_realloc(HFDI hfdi, void *mem, size_t prevsize, size_t newsize) static char *FDI_read_string(HFDI hfdi, INT_PTR hf, long cabsize) { size_t len=256, - oldlen = 0, base = FDI_getoffset(hfdi, hf), maxlen = cabsize - base; BOOL ok = FALSE; unsigned int i; cab_UBYTE *buf = NULL; - TRACE("(hfdi == ^%p, hf == %ld)\n", hfdi, hf); + TRACE("(hfdi == ^%p, hf == %ld, cabsize == %ld)\n", hfdi, hf, cabsize); do { if (len > maxlen) len = maxlen; - if (!(buf = FDI_realloc(hfdi, buf, oldlen, len))) break; - oldlen = len; + if (!(buf = PFDI_ALLOC(hfdi, len))) break; if (!PFDI_READ(hfdi, hf, buf, len)) break; /* search for a null terminator in what we've just read */ @@ -464,8 +442,13 @@ static char *FDI_read_string(HFDI hfdi, INT_PTR hf, long cabsize) ERR("cabinet is truncated\n"); break; } - len += 256; + /* The buffer is too small for the string. Reset the file to the point + * were we started, free the buffer and increase the size for the next try + */ PFDI_SEEK(hfdi, hf, base, SEEK_SET); + PFDI_FREE(hfdi, buf); + buf = NULL; + len *= 2; } } while (!ok);
[View Less]
1
0
0
0
Maarten Lankhorst : dsound: Fix detection of different sample rates in setformat.
by Alexandre Julliard
10 Sep '07
10 Sep '07
Module: wine Branch: master Commit: 7a04c24e632857f33f873fe1aa9f8c0b1ee66fd4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7a04c24e632857f33f873fe1a…
Author: Maarten Lankhorst <m.b.lankhorst(a)gmail.com> Date: Wed Sep 5 10:58:52 2007 +0200 dsound: Fix detection of different sample rates in setformat. --- dlls/dsound/primary.c | 27 +++++++++++++++++++-------- 1 files changed, 19 insertions(+), 8 deletions(-) diff --git a/dlls/dsound/primary.c b/dlls/dsound/primary.c
…
[View More]
index 4c9e125..f358aec 100644 --- a/dlls/dsound/primary.c +++ b/dlls/dsound/primary.c @@ -71,6 +71,8 @@ static void DSOUND_RecalcPrimary(DirectSoundDevice *device) HRESULT DSOUND_ReopenDevice(DirectSoundDevice *device, BOOL forcewave) { HRESULT hres = DS_OK; + TRACE("(%p, %d)\n", device, forcewave); + if (device->driver) { IDsDriver_Close(device->driver); @@ -336,7 +338,7 @@ HRESULT DSOUND_PrimaryStop(DirectSoundDevice *device) err = IDsDriverBuffer_Stop(device->hwbuf); if (err == DSERR_BUFFERLOST) { DSOUND_PrimaryClose(device); - err = DSOUND_ReopenDevice(device, !device->driver); + err = DSOUND_ReopenDevice(device, FALSE); if (FAILED(err)) ERR("DSOUND_ReopenDevice failed\n"); else @@ -454,6 +456,7 @@ HRESULT DSOUND_PrimarySetFormat(DirectSoundDevice *device, LPCWAVEFORMATEX wfex, err = DS_OK; goto done; } + if (err == S_FALSE) { /* ALSA specific: S_FALSE tells that recreation was successful, @@ -476,20 +479,28 @@ HRESULT DSOUND_PrimarySetFormat(DirectSoundDevice *device, LPCWAVEFORMATEX wfex, { DSOUND_PrimaryClose(device); - if (device->drvdesc.dwFlags & DSDDESC_DOMMSYSTEMSETFORMAT) + err = DSOUND_ReopenDevice(device, FALSE); + if (FAILED(err)) { - err = DSOUND_ReopenDevice(device, FALSE); - if (FAILED(err)) - { - WARN("DSOUND_ReopenDevice failed: %08x\n", err); - goto done; - } + WARN("DSOUND_ReopenDevice failed: %08x\n", err); + goto done; } err = DSOUND_PrimaryOpen(device); if (err != DS_OK) { WARN("DSOUND_PrimaryOpen failed\n"); goto done; } + + if (wfex->nSamplesPerSec/100 != device->pwfx->nSamplesPerSec/100 && forced && device->buffer) + { + DSOUND_PrimaryClose(device); + device->pwfx->nSamplesPerSec = wfex->nSamplesPerSec; + err = DSOUND_ReopenDevice(device, TRUE); + if (FAILED(err)) + WARN("DSOUND_ReopenDevice(2) failed: %08x\n", err); + else if (FAILED((err = DSOUND_PrimaryOpen(device)))) + WARN("DSOUND_PrimaryOpen(2) failed: %08x\n", err); + } } if (nSamplesPerSec != device->pwfx->nSamplesPerSec || bpp != device->pwfx->wBitsPerSample || chans != device->pwfx->nChannels) {
[View Less]
1
0
0
0
Maarten Lankhorst : dsound: Fix null pointer dereference for waveout in creating buffer.
by Alexandre Julliard
10 Sep '07
10 Sep '07
Module: wine Branch: master Commit: 7144849d0b08f99d5ed245e9c801c367f8258e99 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7144849d0b08f99d5ed245e9c…
Author: Maarten Lankhorst <m.b.lankhorst(a)gmail.com> Date: Tue Sep 4 22:58:23 2007 +0200 dsound: Fix null pointer dereference for waveout in creating buffer. --- dlls/dsound/buffer.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dlls/dsound/buffer.c b/dlls/dsound/buffer.c index 1a99927..
…
[View More]
5d95078 100644 --- a/dlls/dsound/buffer.c +++ b/dlls/dsound/buffer.c @@ -1023,13 +1023,16 @@ HRESULT IDirectSoundBufferImpl_Create( use_hw = !!(dsbd->dwFlags & DSBCAPS_LOCHARDWARE); TRACE("use_hw = %d, capf = 0x%08x, device->drvcaps.dwFlags = 0x%08x\n", use_hw, capf, device->drvcaps.dwFlags); - if (use_hw && (device->drvcaps.dwFlags & capf) != capf) + if (use_hw && ((device->drvcaps.dwFlags & capf) != capf || !device->driver)) { - WARN("Format not supported for hardware buffer\n"); + if (device->driver) + WARN("Format not supported for hardware buffer\n"); HeapFree(GetProcessHeap(),0,dsb->pwfx); HeapFree(GetProcessHeap(),0,dsb); *pdsb = NULL; - return DSERR_BADFORMAT; + if ((device->drvcaps.dwFlags & capf) != capf) + return DSERR_BADFORMAT; + return DSERR_GENERIC; } /* FIXME: check hardware sample rate mixing capabilities */
[View Less]
1
0
0
0
Maarten Lankhorst : winealsa: Remove forceformat and 2 orphan LeaveCriticalSection.
by Alexandre Julliard
10 Sep '07
10 Sep '07
Module: wine Branch: master Commit: 985df9cdf0dc1561cebfa27a01bd7f98d0c7d746 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=985df9cdf0dc1561cebfa27a0…
Author: Maarten Lankhorst <m.b.lankhorst(a)gmail.com> Date: Wed Sep 5 10:56:59 2007 +0200 winealsa: Remove forceformat and 2 orphan LeaveCriticalSection. --- dlls/winealsa.drv/dsoutput.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/dlls/winealsa.drv/dsoutput.c b/dlls/winealsa.drv/
…
[View More]
dsoutput.c index c1cd039..d51e39a 100644 --- a/dlls/winealsa.drv/dsoutput.c +++ b/dlls/winealsa.drv/dsoutput.c @@ -73,7 +73,6 @@ struct IDsDriverImpl /* IDsDriverImpl fields */ IDsDriverBufferImpl* primary; UINT wDevID; - DWORD forceformat; }; struct IDsDriverBufferImpl @@ -396,8 +395,6 @@ static HRESULT SetFormat(IDsDriverBufferImpl *This, LPWAVEFORMATEX pwfx) { if (errno != EBUSY || !This->pcm) { - /* **** */ - LeaveCriticalSection(&This->pcm_crst); WARN("Cannot open sound device: %s\n", snd_strerror(err)); return DSERR_GENERIC; } @@ -407,8 +404,6 @@ static HRESULT SetFormat(IDsDriverBufferImpl *This, LPWAVEFORMATEX pwfx) err = snd_pcm_open(&pcm, WOutDev[This->drv->wDevID].pcmname, SND_PCM_STREAM_PLAYBACK, SND_PCM_NONBLOCK); if (err < 0) { - /* **** */ - LeaveCriticalSection(&This->pcm_crst); WARN("Cannot open sound device: %s\n", snd_strerror(err)); return DSERR_BUFFERLOST; } @@ -433,12 +428,7 @@ static HRESULT SetFormat(IDsDriverBufferImpl *This, LPWAVEFORMATEX pwfx) err = snd_pcm_hw_params_set_rate_near(pcm, hw_params, &rate, NULL); if (err < 0) { rate = pwfx->nSamplesPerSec; WARN("Could not set rate\n"); goto err; } - if (!ALSA_NearMatch(rate, pwfx->nSamplesPerSec) && (This->drv->forceformat++)) - { - WARN("Could not set exact rate %d, instead %d, bombing out\n", pwfx->nSamplesPerSec, rate); - goto err; - } - else if (!ALSA_NearMatch(rate, pwfx->nSamplesPerSec)) + if (!ALSA_NearMatch(rate, pwfx->nSamplesPerSec)) { WARN("Could not set sound rate to %d, but instead to %d\n", pwfx->nSamplesPerSec, rate); pwfx->nSamplesPerSec = rate; @@ -496,7 +486,6 @@ static HRESULT WINAPI IDsDriverBufferImpl_SetFormat(PIDSDRIVERBUFFER iface, LPWA /* **** */ EnterCriticalSection(&This->pcm_crst); - This->drv->forceformat = FALSE; hr = SetFormat(This, pwfx); /* **** */ LeaveCriticalSection(&This->pcm_crst);
[View Less]
1
0
0
0
Maarten Lankhorst : winealsa: Use correct capture position in getposition.
by Alexandre Julliard
10 Sep '07
10 Sep '07
Module: wine Branch: master Commit: 5eabdff6aba82b20581bc567a376ba3893f9d6c1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5eabdff6aba82b20581bc567a…
Author: Maarten Lankhorst <m.b.lankhorst(a)gmail.com> Date: Sun Sep 2 16:37:04 2007 +0200 winealsa: Use correct capture position in getposition. --- dlls/winealsa.drv/dscapture.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/winealsa.drv/dscapture.c b/dlls/winealsa.drv/dscapture.c index
…
[View More]
243f24a..7c1aaad 100644 --- a/dlls/winealsa.drv/dscapture.c +++ b/dlls/winealsa.drv/dscapture.c @@ -516,7 +516,7 @@ static HRESULT WINAPI IDsCaptureDriverBufferImpl_GetPosition(PIDSCDRIVERBUFFER i hw_wptr = This->mmap_pos; if (lpdwCappos) - *lpdwCappos = realpos_to_fakepos(This, hw_wptr); + *lpdwCappos = realpos_to_fakepos(This, hw_pptr); if (lpdwReadpos) *lpdwReadpos = realpos_to_fakepos(This, hw_wptr);
[View Less]
1
0
0
0
Aric Stewart : comctl32: Flesh out version info.
by Alexandre Julliard
10 Sep '07
10 Sep '07
Module: wine Branch: master Commit: bbc57572630a60674086eccd788e0200988c730d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=bbc57572630a60674086eccd7…
Author: Aric Stewart <aric(a)codeweavers.com> Date: Wed Sep 5 17:43:10 2007 +0900 comctl32: Flesh out version info. --- dlls/comctl32/comctl32.h | 2 -- dlls/comctl32/rsrc.rc | 7 +++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dlls/comctl32/comctl32.h b/dlls/comctl32/comctl32.h index
…
[View More]
5917a9b..5e74a16 100644 --- a/dlls/comctl32/comctl32.h +++ b/dlls/comctl32/comctl32.h @@ -153,8 +153,6 @@ BOOL Str_SetPtrAtoW (LPWSTR *lppDest, LPCSTR lpSrc); BOOL Str_SetPtrWtoA (LPSTR *lppDest, LPCWSTR lpSrc); #define COMCTL32_VERSION_MINOR 81 -#define WINE_FILEVERSION 5, COMCTL32_VERSION_MINOR, 4704, 1100 -#define WINE_FILEVERSIONSTR "5.81" /* Our internal stack structure of the window procedures to subclass */ typedef struct _SUBCLASSPROCS { diff --git a/dlls/comctl32/rsrc.rc b/dlls/comctl32/rsrc.rc index e769123..19bbb77 100644 --- a/dlls/comctl32/rsrc.rc +++ b/dlls/comctl32/rsrc.rc @@ -27,6 +27,13 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL +#define WINE_FILEDESCRIPTION_STR "Wine Common Controls" +#define WINE_FILENAME_STR "comctl32.dll" +#define WINE_FILEVERSION COMCTL32_VERSION, COMCTL32_VERSION_MINOR, 4704, 1100 +#define WINE_FILEVERSIONSTR "5.81" +#define WINE_PRODUCTVERSION WINE_FILEVERSION +#define WINE_PRODUCTVERSION_STR WINE_FILEVERSIONSTR + #include "wine/wine_common_ver.rc" /* BINRES idt_check.bmp */
[View Less]
1
0
0
0
Aric Stewart : imm32: Further tweeks to CFS_POINT and CFS_RECT placement of the default ime window .
by Alexandre Julliard
10 Sep '07
10 Sep '07
Module: wine Branch: master Commit: 7f83b940b5144f0079601e43280da06663be2159 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7f83b940b5144f0079601e432…
Author: Aric Stewart <aric(a)codeweavers.com> Date: Wed Sep 5 13:11:51 2007 +0900 imm32: Further tweeks to CFS_POINT and CFS_RECT placement of the default ime window. --- dlls/imm32/imm.c | 78 ++++++++++++++++++++++++++++++++++-------------------- 1 files changed, 49 insertions(+), 29 deletions(-) diff --git a/dlls/
…
[View More]
imm32/imm.c b/dlls/imm32/imm.c index 38ba65e..b95b257 100644 --- a/dlls/imm32/imm.c +++ b/dlls/imm32/imm.c @@ -1981,6 +1981,7 @@ static void PaintDefaultIMEWnd(HWND hwnd) LPBYTE compdata = NULL; HMONITOR monitor; MONITORINFO mon_info; + INT offX=0, offY=0; GetClientRect(hwnd,&rect); FillRect(hdc, &rect, (HBRUSH)(COLOR_WINDOW + 1)); @@ -2005,24 +2006,30 @@ static void PaintDefaultIMEWnd(HWND hwnd) pt.y = size.cy; LPtoDP(hdc,&pt,1); - if (root_context->IMC.cfCompForm.dwStyle == CFS_POINT || - root_context->IMC.cfCompForm.dwStyle == CFS_FORCE_POSITION) + /* + * How this works based on tests on windows: + * CFS_POINT: then we start our window at the point and grow it as large + * as it needs to be for the string. + * CFS_RECT: we still use the ptCurrentPos as a starting point and our + * window is only as large as we need for the string, but we do not + * grow such that our window exceeds the given rect. Wrapping if + * needed and possible. If our ptCurrentPos is outside of our rect + * then no window is displayed. + * CFS_FORCE_POSITION: appears to behave just like CFS_POINT + * maybe becase the default MSIME does not do any IME adjusting. + */ + if (root_context->IMC.cfCompForm.dwStyle != CFS_DEFAULT) { POINT cpt = root_context->IMC.cfCompForm.ptCurrentPos; ClientToScreen(root_context->IMC.hWnd,&cpt); rect.left = cpt.x; rect.top = cpt.y; - rect.right = rect.left + pt.x + 20; - rect.bottom = rect.top + pt.y + 20; + rect.right = rect.left + pt.x; + rect.bottom = rect.top + pt.y; + offX=offY=10; monitor = MonitorFromPoint(cpt, MONITOR_DEFAULTTOPRIMARY); } - else if (root_context->IMC.cfCompForm.dwStyle == CFS_RECT) - { - rect = root_context->IMC.cfCompForm.rcArea; - MapWindowPoints( root_context->IMC.hWnd, 0, (POINT *)&rect, 2 ); - monitor = MonitorFromRect(&rect, MONITOR_DEFAULTTOPRIMARY); - } - else + else /* CFS_DEFAULT */ { /* Windows places the default IME window in the bottom left */ HWND target = root_context->IMC.hWnd; @@ -2032,34 +2039,47 @@ static void PaintDefaultIMEWnd(HWND hwnd) rect.top = rect.bottom; rect.right = rect.left + pt.x + 20; rect.bottom = rect.top + pt.y + 20; + offX=offY=10; monitor = MonitorFromWindow(target, MONITOR_DEFAULTTOPRIMARY); } - /* make sure we are on the desktop */ - mon_info.cbSize = sizeof(mon_info); - GetMonitorInfoW(monitor, &mon_info); - - if (rect.bottom > mon_info.rcWork.bottom) - { - int shift = rect.bottom - mon_info.rcWork.bottom; - rect.top -= shift; - rect.bottom -= shift; - } - if (rect.left < 0) + if (root_context->IMC.cfCompForm.dwStyle == CFS_RECT) { - rect.right -= rect.left; - rect.left = 0; + RECT client; + client =root_context->IMC.cfCompForm.rcArea; + MapWindowPoints( root_context->IMC.hWnd, 0, (POINT *)&client, 2 ); + IntersectRect(&rect,&rect,&client); + /* TODO: Wrap the input if needed */ } - if (rect.right > mon_info.rcWork.right) + + if (root_context->IMC.cfCompForm.dwStyle == CFS_DEFAULT) { - int shift = rect.right - mon_info.rcWork.right; - rect.left -= shift; - rect.right -= shift; + /* make sure we are on the desktop */ + mon_info.cbSize = sizeof(mon_info); + GetMonitorInfoW(monitor, &mon_info); + + if (rect.bottom > mon_info.rcWork.bottom) + { + int shift = rect.bottom - mon_info.rcWork.bottom; + rect.top -= shift; + rect.bottom -= shift; + } + if (rect.left < 0) + { + rect.right -= rect.left; + rect.left = 0; + } + if (rect.right > mon_info.rcWork.right) + { + int shift = rect.right - mon_info.rcWork.right; + rect.left -= shift; + rect.right -= shift; + } } SetWindowPos(hwnd, HWND_TOPMOST, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, SWP_NOACTIVATE); - TextOutW(hdc, 10,10, CompString, compstr->dwCompStrLen); + TextOutW(hdc, offX,offY, CompString, compstr->dwCompStrLen); if (oldfont) SelectObject(hdc,oldfont);
[View Less]
1
0
0
0
Aric Stewart : comctl32: TCM_SETCURSEL also updates the focus item.
by Alexandre Julliard
10 Sep '07
10 Sep '07
Module: wine Branch: master Commit: 3822aa4b638ac1820d80fedee05c37f777137854 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3822aa4b638ac1820d80fedee…
Author: Aric Stewart <aric(a)codeweavers.com> Date: Tue Sep 4 15:38:19 2007 +0900 comctl32: TCM_SETCURSEL also updates the focus item. --- dlls/comctl32/tab.c | 1 + dlls/comctl32/tests/tab.c | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.
…
[View More]
c index 830bc7e..d3cf0fd 100644 --- a/dlls/comctl32/tab.c +++ b/dlls/comctl32/tab.c @@ -255,6 +255,7 @@ static inline LRESULT TAB_SetCurSel (TAB_INFO *infoPtr, INT iItem) else { if (infoPtr->iSelected != iItem) { infoPtr->iSelected=iItem; + infoPtr->uFocus=iItem; TAB_EnsureSelectionVisible(infoPtr); TAB_InvalidateTabArea(infoPtr); } diff --git a/dlls/comctl32/tests/tab.c b/dlls/comctl32/tests/tab.c index 3069d13..1787a8b 100644 --- a/dlls/comctl32/tests/tab.c +++ b/dlls/comctl32/tests/tab.c @@ -182,6 +182,7 @@ static const struct message getset_cur_focus_seq[] = { static const struct message getset_cur_sel_seq[] = { { TCM_SETCURSEL, sent|lparam, 0 }, { TCM_GETCURSEL, sent|wparam|lparam, 0, 0 }, + { TCM_GETCURFOCUS, sent|wparam|lparam, 0, 0 }, { TCM_SETCURSEL, sent|lparam, 0 }, { TCM_GETCURSEL, sent|wparam|lparam, 0, 0 }, { TCM_SETCURSEL, sent|lparam, 0 }, @@ -673,9 +674,7 @@ static void test_getters_setters(INT nTabs) SendMessage(hTab, TCM_SETCURFOCUS, nTabs+1, 0); focusIndex = SendMessage(hTab, TCM_GETCURFOCUS, 0, 0); - todo_wine{ expect(1, focusIndex); - } ok_sequence(sequences, TAB_SEQ_INDEX, getset_cur_focus_seq, "Getset curFoc test sequence", FALSE); } @@ -683,6 +682,7 @@ static void test_getters_setters(INT nTabs) /* Testing CurSel */ { INT selectionIndex; + INT focusIndex; flush_sequences(sequences, NUM_MSG_SEQUENCES); @@ -692,6 +692,10 @@ static void test_getters_setters(INT nTabs) selectionIndex = SendMessage(hTab, TCM_GETCURSEL, 0, 0); expect(nTabs-1, selectionIndex); + /* Focus should switch with selection */ + focusIndex = SendMessage(hTab, TCM_GETCURFOCUS, 0, 0); + expect(nTabs-1, focusIndex); + /* Testing CurSel with negative value */ SendMessage(hTab, TCM_SETCURSEL, -10, 0); selectionIndex = SendMessage(hTab, TCM_GETCURSEL, 0, 0); @@ -704,9 +708,7 @@ static void test_getters_setters(INT nTabs) selectionIndex = SendMessage(hTab, TCM_SETCURSEL, nTabs+1, 0); expect(-1, selectionIndex); selectionIndex = SendMessage(hTab, TCM_GETCURFOCUS, 0, 0); - todo_wine{ expect(1, selectionIndex); - } ok_sequence(sequences, TAB_SEQ_INDEX, getset_cur_sel_seq, "Getset curSel test sequence", FALSE); ok_sequence(sequences, PARENT_SEQ_INDEX, empty_sequence, "Getset curSel test parent sequence", FALSE);
[View Less]
1
0
0
0
← Newer
1
...
72
73
74
75
76
77
78
79
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
Results per page:
10
25
50
100
200