Zhiyi Zhang (@zhiyi) commented about dlls/comctl32/commctrl.c:
return DoNotify(¬ify, code, hdr);
}
+/* reallocate *array if needed so it can hold at least count WCHARs */ +/* *size measured in bytes, count measured in WCHARs */ +/* return FALSE means failed (*array still valid but too small) */ +/* return TRUE means successful */ +BOOL COMCTL32_WCHAR_array_reserve(WCHAR **array, DWORD *size, DWORD count)
I would rather you copy from d3d_array_reserve() and call it comctl32_array_reserve() and make it not WCHAR specific so that we can use it for other things.