Huw Davies (@huw) commented about dlls/winmm/lolvldrv.c:
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 = (WINE_MLD*)realloc(llTypes[type].lpMlds - 1,
sizeof(WINE_MLD) * (llTypes[type].wMaxId + 1)) + 1;
While we're at it, could we also remove the casts? There are also unnecessary casts acting on the argument to some of the `free()` calls.