winmm: Avoid casting return value of Heap(Re)Alloc calls.
Frédéric Delanoy
frederic.delanoy at gmail.com
Sat Oct 22 03:52:11 CDT 2011
---
dlls/winmm/lolvldrv.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/dlls/winmm/lolvldrv.c b/dlls/winmm/lolvldrv.c
index b8f1b54..a01d44b 100644
--- a/dlls/winmm/lolvldrv.c
+++ b/dlls/winmm/lolvldrv.c
@@ -400,13 +400,15 @@ static BOOL MMDRV_InitPerType(LPWINE_MM_DRIVER lpDrv, UINT type, UINT wMsg)
lpDrv->drvname, llTypes[type].typestr);
/* realloc translation table */
if (llTypes[type].lpMlds)
- llTypes[type].lpMlds = (LPWINE_MLD)
- HeapReAlloc(GetProcessHeap(), 0, llTypes[type].lpMlds - 1,
- sizeof(WINE_MLD) * (llTypes[type].wMaxId + 1)) + 1;
+ llTypes[type].lpMlds =
+ HeapReAlloc(GetProcessHeap(), 0, llTypes[type].lpMlds - 1,
+ sizeof(WINE_MLD) * (llTypes[type].wMaxId + 1))
+ + 1;
else
- llTypes[type].lpMlds = (LPWINE_MLD)
- HeapAlloc(GetProcessHeap(), 0,
- sizeof(WINE_MLD) * (llTypes[type].wMaxId + 1)) + 1;
+ llTypes[type].lpMlds =
+ HeapAlloc(GetProcessHeap(), 0,
+ sizeof(WINE_MLD) * (llTypes[type].wMaxId + 1))
+ + 1;
/* re-build the translation table */
if (lpDrv->bIsMapper) {
--
1.7.7
More information about the wine-patches
mailing list