From 529aa7de903fcbe6a118ebcf303a417f87017d97 Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Wed, 22 Nov 2006 16:15:40 +0000 Subject: [PATCH] winmm: Cast-qual warnings fix. --- dlls/winmm/playsound.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/winmm/playsound.c b/dlls/winmm/playsound.c index 2d423fad5da..6796ae0932e 100644 --- a/dlls/winmm/playsound.c +++ b/dlls/winmm/playsound.c @@ -220,10 +220,10 @@ static WINE_PLAYSOUND* PlaySound_Alloc(const void* pszSound, HMODULE hmod, { if (fdwSound & SND_ASYNC) { - wps->pszSound = HeapAlloc(GetProcessHeap(), 0, - (lstrlenW(pszSound)+1) * sizeof(WCHAR)); - if (!wps->pszSound) goto oom_error; - lstrcpyW((LPWSTR)wps->pszSound, pszSound); + LPWSTR sound = HeapAlloc(GetProcessHeap(), 0, + (lstrlenW(pszSound)+1) * sizeof(WCHAR)); + if (!sound) goto oom_error; + wps->pszSound = lstrcpyW(sound, pszSound); wps->bAlloc = TRUE; } else -- 2.11.4.GIT