winmm: Cast-qual warnings fix.

This commit is contained in:
Andrew Talbot 2006-11-22 16:15:40 +00:00 committed by Alexandre Julliard
parent a8f02b8bb7
commit 529aa7de90
1 changed files with 4 additions and 4 deletions

View File

@ -220,10 +220,10 @@ static WINE_PLAYSOUND* PlaySound_Alloc(const void* pszSound, HMODULE hmod,
{
if (fdwSound & SND_ASYNC)
{
wps->pszSound = HeapAlloc(GetProcessHeap(), 0,
LPWSTR sound = HeapAlloc(GetProcessHeap(), 0,
(lstrlenW(pszSound)+1) * sizeof(WCHAR));
if (!wps->pszSound) goto oom_error;
lstrcpyW((LPWSTR)wps->pszSound, pszSound);
if (!sound) goto oom_error;
wps->pszSound = lstrcpyW(sound, pszSound);
wps->bAlloc = TRUE;
}
else