Commit a4c90cff authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Don't use old_spacing-1 if old_spacing already has the minimum value.

parent 2147b9f5
......@@ -449,7 +449,7 @@ static void test_SPI_ICONHORIZONTALSPACING( void ) /* 13 */
ok(rc!=0,"SystemParametersInfoA: rc=%d err=%ld\n",rc,GetLastError());
/* do not increase the value as it would upset the user's icon layout */
curr_val = old_spacing-1;
curr_val = (old_spacing > 32 ? old_spacing-1 : 32);
rc=SystemParametersInfoA( SPI_ICONHORIZONTALSPACING, curr_val, 0,
SPIF_UPDATEINIFILE | SPIF_SENDCHANGE);
ok(rc!=0,"SystemParametersInfoA: rc=%d err=%ld\n",rc,GetLastError());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment