winmm: Cast-qual warnings fix.
This commit is contained in:
parent
a8f02b8bb7
commit
529aa7de90
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue