user32/test: Start the AdjustWindowRectExForDpi() from a known state.

rect and rect2 have been modified by the previous test by the time we
get to AdjustWindowRectExForDpi(). This makes interpreting the traces
harder in case of a failure. So reset them to the same starting state
as for the AdjustWindowRectEx() test.

Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2019-11-21 17:15:19 +01:00 committed by Alexandre Julliard
parent af638bc117
commit c56116aa37
1 changed files with 2 additions and 0 deletions

View File

@ -5407,6 +5407,8 @@ static void test_AWR_flags(void)
style, exstyle, wine_dbgstr_rect( &rect ), wine_dbgstr_rect( &rect2 ));
if (pAdjustWindowRectExForDpi)
{
SetRect( &rect, 100, 100, 200, 200 );
rect2 = rect;
pAdjustWindowRectExForDpi( &rect, style, FALSE, exstyle, 192 );
wine_AdjustWindowRectExForDpi( &rect2, style, FALSE, exstyle, 192 );
ok( EqualRect( &rect, &rect2 ), "%08x %08x rects do not match: win %s wine %s\n",