Re: winmm/tests: waveOutGetDevCaps called with invalid size

2008-04-30 Thread Peter Åstrand
On Tue, 29 Apr 2008, Robert Reif wrote: > First of all, requesting 4 bytes is not invalid but a perfectly > reasonable thing to do. It is just reading the manufactures id and > product id. However this behavior is not documented in MSDN so at best > it's just unspecified behavior. The reason

Re: winmm/tests: waveOutGetDevCaps called with invalid size

2008-04-29 Thread Robert Reif
Robert Reif wrote: > Peter Åstrand wrote: > >> On Mon, 28 Apr 2008, Robert Reif wrote: >> >> >> However, the waveOutGetDevCapsW fails as well on WTS, also returning MMSYSERR_INVALPARAM. >> >> >>> Let me get this straight, your company's produc

Re: winmm/tests: waveOutGetDevCaps called with invalid size

2008-04-29 Thread Robert Reif
Peter Åstrand wrote: > On Mon, 28 Apr 2008, Robert Reif wrote: > > >>> However, the waveOutGetDevCapsW fails as well on WTS, also returning >>> MMSYSERR_INVALPARAM. >>> > > >> Let me get this straight, your company's product doesn't pass this wine >> regression test so you want to rem

Re: winmm/tests: waveOutGetDevCaps called with invalid size

2008-04-28 Thread Peter Åstrand
On Mon, 28 Apr 2008, Robert Reif wrote: > > However, the waveOutGetDevCapsW fails as well on WTS, also returning > > MMSYSERR_INVALPARAM. > Let me get this straight, your company's product doesn't pass this wine > regression test so you want to remove the test? No. Quoting from my intial post:

Re: winmm/tests: waveOutGetDevCaps called with invalid size

2008-04-28 Thread Robert Reif
Peter Åstrand wrote: >>> And what is the error? If you know the error code returned, Ill add it >>> to the code so we can end this discussion. >>> >> The error is MMSYSERR_INVALPARAM. >> > > I can see that this patch has now been committed: > > --- wine/dlls/winmm/tests/wave.c:1.67

Re: winmm/tests: waveOutGetDevCaps called with invalid size

2008-04-28 Thread Peter Åstrand
> > And what is the error? If you know the error code returned, Ill add it > > to the code so we can end this discussion. > > The error is MMSYSERR_INVALPARAM. I can see that this patch has now been committed: --- wine/dlls/winmm/tests/wave.c:1.67 Fri Feb 29 06:18:36 2008 +++ wine/dlls/winm

Re: winmm/tests: waveOutGetDevCaps called with invalid size

2008-04-24 Thread Peter Åstrand
> > > There are only two options: only pass the number of bytes requested > > > or return an error for unreasonable sizes. What is Terminal Server > > > doing? > > > > It's returning an error. > > > And what is the error? If you know the error code returned, Ill add it > to the code so we

Re: winmm/tests: waveOutGetDevCaps called with invalid size

2008-04-23 Thread Robert Reif
>> There are only two options: >> only pass the number of bytes requested or return an error for unreasonable >> sizes. What is Terminal Server doing? >> > > It's returning an error. > > And what is the error? If you know the error code returned, Ill add it to the code so we can end

Re: winmm/tests: waveOutGetDevCaps called with invalid size

2008-04-22 Thread Peter Åstrand
> > However, I still think it's VERY strange to expect success from an invalid > > call. You are describing it as an "invalid argument" yourself. Why should we > > expect a call with an "invalid argument" to succeed? And again, the test > > does NOT pass on all Microsoft versions; it fails on Term

Re: winmm/tests: waveOutGetDevCaps called with invalid size

2008-04-22 Thread Robert Reif
Peter Åstrand wrote: > However, I still think it's VERY strange to expect success from an > invalid call. You are describing it as an "invalid argument" yourself. > Why should we expect a call with an "invalid argument" to succeed? And > again, the test does NOT pass on all Microsoft versions; i

Re: winmm/tests: waveOutGetDevCaps called with invalid size

2008-04-22 Thread Peter Åstrand
On Mon, 21 Apr 2008, Robert Reif wrote: > > That's the whole point of the test, to check what happens with an invalid > > argument. > > > > So what do you think *should* happen with an invalid argument? The result is > different on different Windows platforms. The behaviour is not specifie

Re: winmm/tests: waveOutGetDevCaps called with invalid size

2008-04-21 Thread Robert Reif
Peter Åstrand wrote: On Fri, 18 Apr 2008, Robert Reif wrote: -rc=waveOutGetDevCapsA(device,&capsA,4); +/* Final call must succeed, capsA will be used below */ +rc=waveOutGetDevCapsA(device,&capsA,sizeof(capsA)); ok(rc==MMSYSERR_NOERROR, "waveOutGetDevCapsA(%s): MMSYS

Re: winmm/tests: waveOutGetDevCaps called with invalid size

2008-04-21 Thread Peter Åstrand
On Fri, 18 Apr 2008, Robert Reif wrote: > > -rc=waveOutGetDevCapsA(device,&capsA,4); > > +/* Final call must succeed, capsA will be used below */ > > +rc=waveOutGetDevCapsA(device,&capsA,sizeof(capsA)); > > ok(rc==MMSYSERR_NOERROR, > > "waveOutGetDevCapsA(%s): MMSYSERR_NOE

Re: winmm/tests: waveOutGetDevCaps called with invalid size

2008-04-18 Thread Robert Reif
Peter Åstrand wrote: > Changelog: > > Calling waveOutGetDevCapsA/waveOutGetDevCapsW with size 4 is wrong, the > size should be the sizeof the structure used. waveOutGetDevCapsA needs to > succeed since the capsA structure is used later. > > Index: wave.c > ===