[PATCH] winmm: Don't mask out SND_ALIAS_ID or SND_FILENAME in sndPlaySound

Andrew Eikum aeikum at codeweavers.com
Wed Dec 5 09:23:18 CST 2012

On Thu, Dec 06, 2012 at 12:14:53AM +0800, Dmitry Timoshkov wrote:
> Andrew Eikum <aeikum at codeweavers.com> wrote:
> > > > The call is only supposed to return TRUE or FALSE, so I guess it's
> > > > checking that the return value isn't 3 or something. Not very useful,
> > > > sure, but it looked odd to just have a series of sndPlaySound calls in
> > > > a row without ok() calls. The real test is to make sure sndPlaySound
> > > > doesn't crash, as it does without my patch.
> > > 
> > > Then the test is completely useless, it actually tests nothing.
> > > 
> > 
> > The ok calls are useless, I guess, but they're not doing any harm,
> > either. You can send a patch to remove the ok calls if you like.
> Without an ok() call a test is meaningless, I guess that Alexandre committed
> it by an accident. Since it's your patch I'll leave a revert to you.

There is an implied test which is that the tests do not crash. Without
the change to <dlls/winmm/playsound.c>, the tests you object to will
crash. With the change, they do not crash. This is the behavior being


More information about the wine-devel mailing list