Commit d2e2e851 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

Marshal and unmarshal TKIND_ENUM and TKIND_ALIAS.

parent 97be0be7
...@@ -705,6 +705,14 @@ serialize_param( ...@@ -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( ...@@ -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;
......
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