comctl32/taskdialog: Fix buttons might disappear.
commit5d7fa27a2f6349dc460bf83c7d670e2458697f65
authorZhiyi Zhang <zzhang@codeweavers.com>
Sun, 17 Jun 2018 08:16:57 +0000 (17 16:16 +0800)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 25 Jun 2018 14:06:13 +0000 (25 16:06 +0200)
tree2de88f03ed754650d33a1f3c7f2440e51a81fe9a
parent10e4eb8aca7d0278acb988df1a2871de9ce318b8
comctl32/taskdialog: Fix buttons might disappear.

In the old button layout algorithm, line count is added
before adding button. This cause line count buffer
overflow when the first button is very long.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/comctl32/taskdialog.c