Module: wine Branch: master Commit: 4d7e73397d7db655e07ea2858c82f9505ff56d32 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4d7e73397d7db655e07ea2858c...
Author: Greg Geldorp ggeldorp@vmware.com Date: Sun Jan 16 19:44:12 2011 +0100
comdlg32/tests: Fix expected height computation.
---
dlls/comdlg32/tests/filedlg.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/comdlg32/tests/filedlg.c b/dlls/comdlg32/tests/filedlg.c index 3b4a92f..0320e7e 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; }