15 Dec
2022
15 Dec
'22
4:08 a.m.
I just realized that the memset in build_zonemap_from_reg is completely unnecessary. You can simplify the code like this: ``` if (used == allocated) { LPDWORD new_data; allocated *= 2; new_data = realloc(data, allocated * sizeof(DWORD)); if (!new_data) goto cleanup; data = new_data; } ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1774#note_19667