Andrew Talbot : winmm: Cast-qual warnings fix.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Nov 24 06:19:00 CST 2006
Module: wine
Branch: master
Commit: 529aa7de903fcbe6a118ebcf303a417f87017d97
URL: http://source.winehq.org/git/wine.git/?a=commit;h=529aa7de903fcbe6a118ebcf303a417f87017d97
Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date: Wed Nov 22 16:15:40 2006 +0000
winmm: Cast-qual warnings fix.
---
dlls/winmm/playsound.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/winmm/playsound.c b/dlls/winmm/playsound.c
index 2d423fa..6796ae0 100644
--- a/dlls/winmm/playsound.c
+++ b/dlls/winmm/playsound.c
@@ -220,10 +220,10 @@ static WINE_PLAYSOUND* PlaySound_Alloc(
{
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
More information about the wine-cvs
mailing list