Commit 529aa7de authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

winmm: Cast-qual warnings fix.

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