12 Sep
2023
12 Sep
'23
8:54 a.m.
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. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/3736#note_44988