Changeset 21916 for trunk/src/oleaut32/tmarshal.c
- Timestamp:
- Dec 18, 2011, 10:28:22 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 bin 2 Makefile.inc 1 env.cmd 2 LocalConfig.kmk
-
-
Property svn:mergeinfo
set to
/branches/gcc-kmk merged eligible
- Property svn:ignore
-
trunk/src/oleaut32/tmarshal.c
r9400 r21916 163 163 } 164 164 hres = IStream_Stat(pStm,&ststg,0); 165 tempbuf = HeapAlloc(GetProcessHeap(), 0, ststg.cbSize. s.LowPart);165 tempbuf = HeapAlloc(GetProcessHeap(), 0, ststg.cbSize.DUMMYSTRUCTNAME_DOT LowPart); 166 166 memset(&seekto,0,sizeof(seekto)); 167 167 hres = IStream_Seek(pStm,seekto,SEEK_SET,&newpos); 168 168 if (hres) { FIXME("Failed Seek %lx\n",hres); goto fail;} 169 hres = IStream_Read(pStm,tempbuf,ststg.cbSize. s.LowPart,&res);169 hres = IStream_Read(pStm,tempbuf,ststg.cbSize.DUMMYSTRUCTNAME_DOT LowPart,&res); 170 170 if (hres) { FIXME("Failed Read %lx\n",hres); goto fail;} 171 171 IStream_Release(pStm); 172 xsize = ststg.cbSize. s.LowPart;172 xsize = ststg.cbSize.DUMMYSTRUCTNAME_DOT LowPart; 173 173 xbuf_add(buf,(LPBYTE)&xsize,sizeof(xsize)); 174 hres = xbuf_add(buf,tempbuf,ststg.cbSize. s.LowPart);174 hres = xbuf_add(buf,tempbuf,ststg.cbSize.DUMMYSTRUCTNAME_DOT LowPart); 175 175 HeapFree(GetProcessHeap(),0,tempbuf); 176 176 return hres; … … 388 388 case VT_CARRAY: { 389 389 int i, arrsize = 1; 390 ARRAYDESC *adesc = td-> u.lpadesc;390 ARRAYDESC *adesc = td->DUMMYUNIONNAME_DOT lpadesc; 391 391 392 392 for (i=0;i<adesc->cDims;i++) … … 489 489 return S_OK; 490 490 } 491 hres = serialize_param(tinfo,writeit,debugout,dealloc,tdesc-> u.lptdesc,(DWORD*)*arg,buf);491 hres = serialize_param(tinfo,writeit,debugout,dealloc,tdesc->DUMMYUNIONNAME_DOT lptdesc,(DWORD*)*arg,buf); 492 492 if (dealloc) HeapFree(GetProcessHeap(),0,(LPVOID)arg); 493 493 return hres; … … 510 510 TYPEATTR *tattr; 511 511 512 hres = ITypeInfo_GetRefTypeInfo(tinfo,tdesc-> u.hreftype,&tinfo2);512 hres = ITypeInfo_GetRefTypeInfo(tinfo,tdesc->DUMMYUNIONNAME_DOT hreftype,&tinfo2); 513 513 if (hres) { 514 FIXME("Could not get typeinfo of hreftype %lx for VT_USERDEFINED.\n",tdesc-> u.hreftype);514 FIXME("Could not get typeinfo of hreftype %lx for VT_USERDEFINED.\n",tdesc->DUMMYUNIONNAME_DOT hreftype); 515 515 return hres; 516 516 } … … 552 552 dealloc, 553 553 tdesc2, 554 (DWORD*)(((LPBYTE)arg)+vdesc-> u.oInst),554 (DWORD*)(((LPBYTE)arg)+vdesc->DUMMYUNIONNAME_DOT oInst), 555 555 buf 556 556 ); … … 574 574 } 575 575 case VT_CARRAY: { 576 ARRAYDESC *adesc = tdesc-> u.lpadesc;576 ARRAYDESC *adesc = tdesc->DUMMYUNIONNAME_DOT lpadesc; 577 577 int i, arrsize = 1; 578 578 … … 612 612 613 613 if ((tdesc->vt != VT_PTR) || 614 (tdesc-> u.lptdesc->vt != VT_PTR) ||615 (tdesc-> u.lptdesc->u.lptdesc->vt != VT_VOID)614 (tdesc->DUMMYUNIONNAME_DOT lptdesc->vt != VT_PTR) || 615 (tdesc->DUMMYUNIONNAME_DOT lptdesc->DUMMYUNIONNAME_DOT lptdesc->vt != VT_VOID) 616 616 ) { 617 617 FIXME("ppvObject not expressed as VT_PTR -> VT_PTR -> VT_VOID?\n"); … … 655 655 int i; 656 656 657 if ((tdesc->vt != VT_PTR) || (tdesc-> u.lptdesc->vt != VT_USERDEFINED)) {657 if ((tdesc->vt != VT_PTR) || (tdesc->DUMMYUNIONNAME_DOT lptdesc->vt != VT_USERDEFINED)) { 658 658 FIXME("DISPPARAMS not expressed as VT_PTR -> VT_USERDEFINED?\n"); 659 659 return E_FAIL; … … 813 813 BOOL derefhere = 0; 814 814 815 derefhere = (tdesc-> u.lptdesc->vt != VT_USERDEFINED);815 derefhere = (tdesc->DUMMYUNIONNAME_DOT lptdesc->vt != VT_USERDEFINED); 816 816 817 817 if (readit) { … … 830 830 if (alloc) { 831 831 if (derefhere) 832 *arg=(DWORD)HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,_xsize(tdesc-> u.lptdesc));832 *arg=(DWORD)HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,_xsize(tdesc->DUMMYUNIONNAME_DOT lptdesc)); 833 833 } 834 834 if (derefhere) 835 return deserialize_param(tinfo, readit, debugout, alloc, tdesc-> u.lptdesc, (LPDWORD)*arg, buf);835 return deserialize_param(tinfo, readit, debugout, alloc, tdesc->DUMMYUNIONNAME_DOT lptdesc, (LPDWORD)*arg, buf); 836 836 else 837 return deserialize_param(tinfo, readit, debugout, alloc, tdesc-> u.lptdesc, arg, buf);837 return deserialize_param(tinfo, readit, debugout, alloc, tdesc->DUMMYUNIONNAME_DOT lptdesc, arg, buf); 838 838 } 839 839 case VT_UNKNOWN: … … 861 861 TYPEATTR *tattr; 862 862 863 hres = ITypeInfo_GetRefTypeInfo(tinfo,tdesc-> u.hreftype,&tinfo2);863 hres = ITypeInfo_GetRefTypeInfo(tinfo,tdesc->DUMMYUNIONNAME_DOT hreftype,&tinfo2); 864 864 if (hres) { 865 FIXME("Could not get typeinfo of hreftype %lx for VT_USERDEFINED.\n",tdesc-> u.hreftype);865 FIXME("Could not get typeinfo of hreftype %lx for VT_USERDEFINED.\n",tdesc->DUMMYUNIONNAME_DOT hreftype); 866 866 return hres; 867 867 } … … 895 895 alloc, 896 896 &vdesc->elemdescVar.tdesc, 897 (DWORD*)(((LPBYTE)*arg)+vdesc-> u.oInst),897 (DWORD*)(((LPBYTE)*arg)+vdesc->DUMMYUNIONNAME_DOT oInst), 898 898 buf 899 899 ); … … 918 918 case VT_CARRAY: { 919 919 /* arg is pointing to the start of the array. */ 920 ARRAYDESC *adesc = tdesc-> u.lpadesc;920 ARRAYDESC *adesc = tdesc->DUMMYUNIONNAME_DOT lpadesc; 921 921 int arrsize,i; 922 922 arrsize = 1; … … 957 957 958 958 if ((tdesc->vt != VT_PTR) || 959 (tdesc-> u.lptdesc->vt != VT_PTR) ||960 (tdesc-> u.lptdesc->u.lptdesc->vt != VT_VOID)959 (tdesc->DUMMYUNIONNAME_DOT lptdesc->vt != VT_PTR) || 960 (tdesc->DUMMYUNIONNAME_DOT lptdesc->DUMMYUNIONNAME_DOT lptdesc->vt != VT_VOID) 961 961 ) { 962 962 FIXME("ppvObject not expressed as VT_PTR -> VT_PTR -> VT_VOID?\n"); … … 999 999 int i; 1000 1000 1001 if ((tdesc->vt != VT_PTR) || (tdesc-> u.lptdesc->vt != VT_USERDEFINED)) {1001 if ((tdesc->vt != VT_PTR) || (tdesc->DUMMYUNIONNAME_DOT lptdesc->vt != VT_USERDEFINED)) { 1002 1002 FIXME("DISPPARAMS not expressed as VT_PTR -> VT_USERDEFINED?\n"); 1003 1003 return E_FAIL; … … 1177 1177 } 1178 1178 /* No need to marshal other data than FIN */ 1179 if (!(elem-> u.paramdesc.wParamFlags & PARAMFLAG_FIN)) {1179 if (!(elem->DUMMYUNIONNAME_DOT paramdesc.wParamFlags & PARAMFLAG_FIN)) { 1180 1180 xargs+=_argsize(elem->tdesc.vt); 1181 1181 if (relaydeb) MESSAGE("[out]"); … … 1192 1192 hres = serialize_DISPPARAM_ptr( 1193 1193 tpinfo->tinfo, 1194 elem-> u.paramdesc.wParamFlags & PARAMFLAG_FIN,1194 elem->DUMMYUNIONNAME_DOT paramdesc.wParamFlags & PARAMFLAG_FIN, 1195 1195 relaydeb, 1196 1196 FALSE, … … 1204 1204 hres = serialize_LPVOID_ptr( 1205 1205 tpinfo->tinfo, 1206 elem-> u.paramdesc.wParamFlags & PARAMFLAG_FIN,1206 elem->DUMMYUNIONNAME_DOT paramdesc.wParamFlags & PARAMFLAG_FIN, 1207 1207 relaydeb, 1208 1208 FALSE, … … 1218 1218 hres = serialize_param( 1219 1219 tpinfo->tinfo, 1220 elem-> u.paramdesc.wParamFlags & PARAMFLAG_FIN,1220 elem->DUMMYUNIONNAME_DOT paramdesc.wParamFlags & PARAMFLAG_FIN, 1221 1221 relaydeb, 1222 1222 FALSE, … … 1272 1272 } 1273 1273 /* No need to marshal other data than FOUT I think */ 1274 if (!(elem-> u.paramdesc.wParamFlags & PARAMFLAG_FOUT)) {1274 if (!(elem->DUMMYUNIONNAME_DOT paramdesc.wParamFlags & PARAMFLAG_FOUT)) { 1275 1275 xargs += _argsize(elem->tdesc.vt); 1276 1276 if (relaydeb) MESSAGE("[in]"); … … 1287 1287 hres = deserialize_DISPPARAM_ptr( 1288 1288 tpinfo->tinfo, 1289 elem-> u.paramdesc.wParamFlags & PARAMFLAG_FOUT,1289 elem->DUMMYUNIONNAME_DOT paramdesc.wParamFlags & PARAMFLAG_FOUT, 1290 1290 relaydeb, 1291 1291 FALSE, … … 1303 1303 hres = deserialize_LPVOID_ptr( 1304 1304 tpinfo->tinfo, 1305 elem-> u.paramdesc.wParamFlags & PARAMFLAG_FOUT,1305 elem->DUMMYUNIONNAME_DOT paramdesc.wParamFlags & PARAMFLAG_FOUT, 1306 1306 relaydeb, 1307 1307 FALSE, … … 1317 1317 hres = deserialize_param( 1318 1318 tpinfo->tinfo, 1319 elem-> u.paramdesc.wParamFlags & PARAMFLAG_FOUT,1319 elem->DUMMYUNIONNAME_DOT paramdesc.wParamFlags & PARAMFLAG_FOUT, 1320 1320 relaydeb, 1321 1321 FALSE, … … 1542 1542 hres = deserialize_DISPPARAM_ptr( 1543 1543 This->tinfo, 1544 elem-> u.paramdesc.wParamFlags & PARAMFLAG_FIN,1544 elem->DUMMYUNIONNAME_DOT paramdesc.wParamFlags & PARAMFLAG_FIN, 1545 1545 FALSE, 1546 1546 TRUE, … … 1558 1558 hres = deserialize_LPVOID_ptr( 1559 1559 This->tinfo, 1560 elem-> u.paramdesc.wParamFlags & PARAMFLAG_FOUT,1560 elem->DUMMYUNIONNAME_DOT paramdesc.wParamFlags & PARAMFLAG_FOUT, 1561 1561 FALSE, 1562 1562 TRUE, … … 1572 1572 hres = deserialize_param( 1573 1573 This->tinfo, 1574 elem-> u.paramdesc.wParamFlags & PARAMFLAG_FIN,1574 elem->DUMMYUNIONNAME_DOT paramdesc.wParamFlags & PARAMFLAG_FIN, 1575 1575 FALSE, 1576 1576 TRUE, … … 1613 1613 hres = serialize_DISPPARAM_ptr( 1614 1614 This->tinfo, 1615 elem-> u.paramdesc.wParamFlags & PARAMFLAG_FOUT,1615 elem->DUMMYUNIONNAME_DOT paramdesc.wParamFlags & PARAMFLAG_FOUT, 1616 1616 FALSE, 1617 1617 TRUE, … … 1625 1625 hres = serialize_LPVOID_ptr( 1626 1626 This->tinfo, 1627 elem-> u.paramdesc.wParamFlags & PARAMFLAG_FOUT,1627 elem->DUMMYUNIONNAME_DOT paramdesc.wParamFlags & PARAMFLAG_FOUT, 1628 1628 FALSE, 1629 1629 TRUE, … … 1639 1639 hres = serialize_param( 1640 1640 This->tinfo, 1641 elem-> u.paramdesc.wParamFlags & PARAMFLAG_FOUT,1641 elem->DUMMYUNIONNAME_DOT paramdesc.wParamFlags & PARAMFLAG_FOUT, 1642 1642 FALSE, 1643 1643 TRUE,
Note:
See TracChangeset
for help on using the changeset viewer.