More pointer math problems

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

 



ChangeLog: dlls/oleaut32/typelib.c
 - Forte C doesn't allow math with void* pointers

Gregg Mattinson
Co-op Developer
Sun Microsystems of Canada

Index: dlls/oleaut32/typelib.c
===================================================================
RCS file: /opcom/comp/ws/wine/CVSROOT/wine/dlls/oleaut32/typelib.c,v
retrieving revision 1.2
diff -u -r1.2 typelib.c
--- /tmp/T0p5aG6W       Fri Jul 12 09:40:25 2002
+++ typelib.c   Thu Jul 11 14:25:26 2002
@@ -2958,7 +2958,7 @@
     for(pBlk = pFirstBlk, order = pHeader->first_blk - 1, i = 0;
          pBlkEntry[order].next != 0;
          order = pBlkEntry[order].next - 1, i++) {
-       pBlk += pBlkEntry[order].len;
+       pBlk = (char*)pBlk + pBlkEntry[order].len;
     }
     pLibBlk = pBlk;
 
@@ -3133,7 +3133,7 @@
          (*ppTypeInfoImpl)->TypeAttr.cbSizeVft = pTITail->cbSizeVft;
       }
       ppTypeInfoImpl = &((*ppTypeInfoImpl)->next);
-      pBlk += pBlkEntry[order].len;
+      pBlk = (char*)pBlk + pBlkEntry[order].len;
     }
 
     if(i != pTypeLibImpl->TypeInfoCount) {

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

  Powered by Linux