equal either lpDx or NULL, we mustn't forget to update it when we
realloc lpDx.
[originally from svn r9526]
- if (len > lpDx_len) {
- if (len > lpDx_len) {
- lpDx_len = len * 9 / 8 + 16;
- lpDx = sresize(lpDx, lpDx_len, int);
- }
- }
+ if (len > lpDx_len) {
+ lpDx_len = len * 9 / 8 + 16;
+ lpDx = sresize(lpDx, lpDx_len, int);
+
+ if (lpDx_maybe) lpDx_maybe = lpDx;
+ }
+
{
int i;
/* only last char has dx width in SURROGATE PAIR and
{
int i;
/* only last char has dx width in SURROGATE PAIR and