Commit ecdafc37 authored by Gregg Mattinson's avatar Gregg Mattinson Committed by Alexandre Julliard

Fixed void* arithmetic.

parent 25ee95cd
...@@ -2958,7 +2958,7 @@ static ITypeLib2* ITypeLib2_Constructor_SLTG(LPVOID pLib, DWORD dwTLBLength) ...@@ -2958,7 +2958,7 @@ static ITypeLib2* ITypeLib2_Constructor_SLTG(LPVOID pLib, DWORD dwTLBLength)
for(pBlk = pFirstBlk, order = pHeader->first_blk - 1, i = 0; for(pBlk = pFirstBlk, order = pHeader->first_blk - 1, i = 0;
pBlkEntry[order].next != 0; pBlkEntry[order].next != 0;
order = pBlkEntry[order].next - 1, i++) { order = pBlkEntry[order].next - 1, i++) {
pBlk += pBlkEntry[order].len; pBlk = (char*)pBlk + pBlkEntry[order].len;
} }
pLibBlk = pBlk; pLibBlk = pBlk;
...@@ -3133,7 +3133,7 @@ static ITypeLib2* ITypeLib2_Constructor_SLTG(LPVOID pLib, DWORD dwTLBLength) ...@@ -3133,7 +3133,7 @@ static ITypeLib2* ITypeLib2_Constructor_SLTG(LPVOID pLib, DWORD dwTLBLength)
(*ppTypeInfoImpl)->TypeAttr.cbSizeVft = pTITail->cbSizeVft; (*ppTypeInfoImpl)->TypeAttr.cbSizeVft = pTITail->cbSizeVft;
} }
ppTypeInfoImpl = &((*ppTypeInfoImpl)->next); ppTypeInfoImpl = &((*ppTypeInfoImpl)->next);
pBlk += pBlkEntry[order].len; pBlk = (char*)pBlk + pBlkEntry[order].len;
} }
if(i != pTypeLibImpl->TypeInfoCount) { if(i != pTypeLibImpl->TypeInfoCount) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment