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:
parent
af638bc117
commit
c56116aa37
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue