fix brainfade

Francois Gouget fgouget at free.fr
Wed May 1 17:27:13 CDT 2002


Or (but mine may have space/tab problems):

Index: wine/dlls/comctl32/status.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/status.c,v
retrieving revision 1.43
diff -u -r1.43 status.c
--- wine/dlls/comctl32/status.c 29 Apr 2002 17:12:01 -0000      1.43
+++ wine/dlls/comctl32/status.c 1 May 2002 21:03:46 -0000
@@ -636,7 +636,7 @@
     if (nPart == 0x00ff) {
        part = &infoPtr->part0;
     } else {
-       if (infoPtr->parts && (nPart < 0 || nPart >= infoPtr->numParts)) {
+       if (infoPtr->parts && nPart >= 0 && nPart < infoPtr->numParts)) {
            part = &infoPtr->parts[nPart];
        }
     }



--
Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
 The greatest programming project of all took six days; on the seventh day the
  programmer rested. We've been trying to debug the *&^%$#@ thing ever since.
                      Moral: design before you implement.





More information about the wine-patches mailing list