Small user32/sysparams test fix
Francois Gouget
fgouget at free.fr
Wed Jan 15 01:51:14 CST 2003
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 at free.fr http://fgouget.free.fr/
RFC 2549: ftp://ftp.isi.edu/in-notes/rfc2549.txt
IP over Avian Carriers with Quality of Service
More information about the wine-patches
mailing list