comdlg32/tests: Fix expected height computation.

This commit is contained in:
Greg Geldorp 2011-01-16 19:44:12 +01:00 committed by Alexandre Julliard
parent f61c8c68b6
commit 4d7e73397d
1 changed files with 1 additions and 1 deletions

View File

@ -765,7 +765,7 @@ static LONG_PTR WINAPI template_hook_arrange(HWND dlgChild, UINT msg, WPARAM wPa
/* special case: there is a control with id stc32 */
/* expected height */
expecty = posz0[withhelp].cy;
if( rcStc32.bottom - rcStc32.top > clrcParent.bottom) {
if( rcStc32.bottom - rcStc32.top + (withhelp ? 0 : fixhelp) > clrcParent.bottom) {
expecty += clrcChild.bottom - clrcParent.bottom;
if( !withhelp) expecty += fixhelp;
}