Fix small warning in sysparams test
Francois Gouget
fgouget at free.fr
Mon Jan 20 14:02:46 CST 2003
rc would be initialized anyway because whatever happens one of the two
ifs is going to be executed. But gcc is not smart enough to see that.
Changelog:
* dlls/user/tests/sysparams.c
Initialize rc to keep gcc happy
Index: dlls/user/tests/sysparams.c
===================================================================
RCS file: /home/wine/wine/dlls/user/tests/sysparams.c,v
retrieving revision 1.12
diff -u -r1.12 sysparams.c
--- dlls/user/tests/sysparams.c 16 Jan 2003 00:19:24 -0000 1.12
+++ dlls/user/tests/sysparams.c 20 Jan 2003 19:58:24 -0000
@@ -243,6 +243,7 @@
int i;
aw_turn++;
+ rc=0;
if (aw_turn % 2!=0) /* call unicode version each second call */
rc=SystemParametersInfoW( SPI_SETMOUSE, 0, curr_val, SPIF_UPDATEINIFILE | SPIF_SENDCHANGE );
if (aw_turn % 2==0 || (rc==0 && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED))
--
Francois Gouget fgouget at free.fr http://fgouget.free.fr/
1 + e ^ ( i * pi ) = 0
More information about the wine-patches
mailing list