зеркало из https://github.com/github/putty.git
Bug fix from Robert de Bath: since lpDx_maybe is always supposed to
equal either lpDx or NULL, we mustn't forget to update it when we realloc lpDx. [originally from svn r9526]
This commit is contained in:
Родитель
b73527e641
Коммит
16a02bb9fc
|
@ -3515,12 +3515,13 @@ void do_text_internal(Context ctx, int x, int y, wchar_t *text, int len,
|
||||||
len += 2;
|
len += 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (len > lpDx_len) {
|
if (len > lpDx_len) {
|
||||||
if (len > lpDx_len) {
|
lpDx_len = len * 9 / 8 + 16;
|
||||||
lpDx_len = len * 9 / 8 + 16;
|
lpDx = sresize(lpDx, lpDx_len, int);
|
||||||
lpDx = sresize(lpDx, lpDx_len, int);
|
|
||||||
}
|
if (lpDx_maybe) lpDx_maybe = lpDx;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
/* only last char has dx width in SURROGATE PAIR and
|
/* only last char has dx width in SURROGATE PAIR and
|
||||||
|
|
Загрузка…
Ссылка в новой задаче