[PATCH 2/4] vbscript: Implemented VarType(try 3)
Shuai Meng
mengshuaicalendr at gmail.com
Wed Jun 25 08:34:08 CDT 2014
2014-06-25 17:32 GMT+08:00 Piotr Caban <piotr.caban at gmail.com>:
> On 06/25/14 04:19, Shuai Meng wrote:
>
>> static HRESULT Global_VarType(vbdisp_t *This, VARIANT *arg, unsigned
>> args_cnt, VARIANT *res)
>> {
>> - 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;
>>
> This function should not return error if res is NULL.
>
But it returned error when res was NULL in CInt and other conversion
functions. Will you please explain this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20140625/2ee9affc/attachment.html>
More information about the wine-devel
mailing list