On 06/25/14 04:19, Shuai Meng wrote:
static HRESULT Global_VarType(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIANT *res)This function should not return error if res is NULL.
{
- FIXME("\n");
- return E_NOTIMPL;
+ TRACE("(%s)\n", debugstr_variant(arg));
+
+ assert(args_cnt == 1);
+
+ if(V_VT(arg) & ~VT_TYPEMASK) {
+ FIXME("not supported %s\n", debugstr_variant(arg));
+ return E_NOTIMPL;
+ }
+
+ if(!res)
+ return DISP_E_BADVARTYPE;