Commit 26cba0cb authored by Mikhail Maroukhine's avatar Mikhail Maroukhine Committed by Alexandre Julliard

msgsm32.acm: Fix compiler warnings with flag -Wcast-qual.

parent bbf827c3
......@@ -179,10 +179,10 @@ static DWORD GSM_FormatValidate(const WAVEFORMATEX *wfx)
WARN("GSM nBlockAlign %u\n", wfx->nBlockAlign);
return 0;
}
if (((GSM610WAVEFORMAT*)wfx)->wSamplesPerBlock != 320)
if (((const GSM610WAVEFORMAT*)wfx)->wSamplesPerBlock != 320)
{
WARN("GSM wSamplesPerBlock %u\n",
((GSM610WAVEFORMAT*)wfx)->wSamplesPerBlock);
((const GSM610WAVEFORMAT*)wfx)->wSamplesPerBlock);
return 0;
}
if (wfx->nAvgBytesPerSec != wfx->nSamplesPerSec * 65 / 320)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment