Marshal and unmarshal TKIND_ENUM and TKIND_ALIAS.
This commit is contained in:
parent
97be0be7e4
commit
d2e2e851da
|
@ -705,6 +705,14 @@ serialize_param(
|
||||||
if (debugout) TRACE_(olerelay)("}");
|
if (debugout) TRACE_(olerelay)("}");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case TKIND_ALIAS:
|
||||||
|
return serialize_param(tinfo2,writeit,debugout,dealloc,&tattr->tdescAlias,arg,buf);
|
||||||
|
case TKIND_ENUM:
|
||||||
|
hres = S_OK;
|
||||||
|
if (debugout) TRACE_(olerelay)("%lx",*arg);
|
||||||
|
if (writeit)
|
||||||
|
hres = xbuf_add(buf,(LPBYTE)arg,sizeof(DWORD));
|
||||||
|
return hres;
|
||||||
default:
|
default:
|
||||||
FIXME("Unhandled typekind %d\n",tattr->typekind);
|
FIXME("Unhandled typekind %d\n",tattr->typekind);
|
||||||
hres = E_FAIL;
|
hres = E_FAIL;
|
||||||
|
@ -1276,6 +1284,15 @@ deserialize_param(
|
||||||
if (debugout) TRACE_(olerelay)("}");
|
if (debugout) TRACE_(olerelay)("}");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case TKIND_ALIAS:
|
||||||
|
return deserialize_param(tinfo2,readit,debugout,alloc,&tattr->tdescAlias,arg,buf);
|
||||||
|
case TKIND_ENUM:
|
||||||
|
if (readit) {
|
||||||
|
hres = xbuf_get(buf,(LPBYTE)arg,sizeof(DWORD));
|
||||||
|
if (hres) ERR("Failed to read enum (4 byte)\n");
|
||||||
|
}
|
||||||
|
if (debugout) TRACE_(olerelay)("%lx",*arg);
|
||||||
|
return hres;
|
||||||
default:
|
default:
|
||||||
ERR("Unhandled typekind %d\n",tattr->typekind);
|
ERR("Unhandled typekind %d\n",tattr->typekind);
|
||||||
hres = E_FAIL;
|
hres = E_FAIL;
|
||||||
|
|
Loading…
Reference in New Issue