oleaut32: Implement de/serialize_param of types VT_ARRAY|<type>.

This commit is contained in:
Aric Stewart 2009-01-29 09:52:29 -06:00 committed by Alexandre Julliard
parent 70131341c7
commit bbf4835568
1 changed files with 12 additions and 2 deletions

View File

@ -606,10 +606,15 @@ serialize_param(
marshal_state *buf)
{
HRESULT hres = S_OK;
VARTYPE vartype;
TRACE("(tdesc.vt %s)\n",debugstr_vt(tdesc->vt));
switch (tdesc->vt) {
vartype = tdesc->vt;
if ((vartype & 0xf000) == VT_ARRAY)
vartype = VT_SAFEARRAY;
switch (vartype) {
case VT_EMPTY: /* nothing. empty variant for instance */
return S_OK;
case VT_I8:
@ -919,11 +924,16 @@ deserialize_param(
marshal_state *buf)
{
HRESULT hres = S_OK;
VARTYPE vartype;
TRACE("vt %s at %p\n",debugstr_vt(tdesc->vt),arg);
vartype = tdesc->vt;
if ((vartype & 0xf000) == VT_ARRAY)
vartype = VT_SAFEARRAY;
while (1) {
switch (tdesc->vt) {
switch (vartype) {
case VT_EMPTY:
if (debugout) TRACE_(olerelay)("<empty>\n");
return S_OK;