Enjoy,
Waldeck
PS: Eric, the credit for this patch should be all yours. Have another beer for me! :-)
Index: wine/dlls/msacm/stream.c =================================================================== RCS file: /home/wine/wine/dlls/msacm/stream.c,v retrieving revision 1.12 diff -u -p -r1.12 stream.c --- wine/dlls/msacm/stream.c 2 Dec 2002 18:10:59 -0000 1.12 +++ wine/dlls/msacm/stream.c 22 Jan 2003 16:00:58 -0000 @@ -147,7 +147,12 @@ MMRESULT WINAPI acmStreamOpen(PHACMSTREA pwfxDst->wFormatTag, pwfxDst->nChannels, pwfxDst->nSamplesPerSec, pwfxDst->nAvgBytesPerSec, pwfxDst->nBlockAlign, pwfxDst->wBitsPerSample, pwfxDst->cbSize); - if ((fdwOpen & ACM_STREAMOPENF_QUERY) && phas) return MMSYSERR_INVALPARAM; + /* (WS) In query mode, phas should be NULL. If it is not, then instead + * of returning an error we are making sure it is NULL, preventing some + * applications that pass garbage for phas from crashing. + */ + if (fdwOpen & ACM_STREAMOPENF_QUERY) phas = NULL; + if (pwfltr && (pwfxSrc->wFormatTag != pwfxDst->wFormatTag)) return MMSYSERR_INVALPARAM; wfxSrcSize = wfxDstSize = sizeof(WAVEFORMATEX);