From 4d7e73397d7db655e07ea2858c82f9505ff56d32 Mon Sep 17 00:00:00 2001 From: Greg Geldorp Date: Sun, 16 Jan 2011 19:44:12 +0100 Subject: [PATCH] comdlg32/tests: Fix expected height computation. --- dlls/comdlg32/tests/filedlg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comdlg32/tests/filedlg.c b/dlls/comdlg32/tests/filedlg.c index 3b4a92f3bda..0320e7e5206 100644 --- a/dlls/comdlg32/tests/filedlg.c +++ b/dlls/comdlg32/tests/filedlg.c @@ -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; }