Small user32/sysparams test fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This will avoid the test failure in the case where old_spacing is
already 32. I really doubt someone would have it set at such a low
value... unless they stopped the test while debugging it :-/


Changelog:

 * dlls/user/tests/sysparams.c

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


Index: dlls/user/tests/sysparams.c
===================================================================
RCS file: /home/wine/wine/dlls/user/tests/sysparams.c,v
retrieving revision 1.11
diff -u -r1.11 sysparams.c
--- dlls/user/tests/sysparams.c	13 Jan 2003 20:40:22 -0000	1.11
+++ dlls/user/tests/sysparams.c	14 Jan 2003 19:16:26 -0000
@@ -449,7 +449,7 @@
     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());



-- 
Francois Gouget         fgouget@free.fr        http://fgouget.free.fr/
               RFC 2549: ftp://ftp.isi.edu/in-notes/rfc2549.txt
                IP over Avian Carriers with Quality of Service



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux