From f20f2237c0eb2c64bd282c02cd8858a4826ea4f4 Mon Sep 17 00:00:00 2001 From: Shuai Meng Date: Sun, 16 Mar 2014 00:05:52 +0800 Subject: [PATCH 08/11] vbscript: Implemented CLng. --- dlls/vbscript/global.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dlls/vbscript/global.c b/dlls/vbscript/global.c index 06810c4..98c783c 100644 --- a/dlls/vbscript/global.c +++ b/dlls/vbscript/global.c @@ -393,8 +393,12 @@ static HRESULT Global_CInt(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARI static HRESULT Global_CLng(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); + + V_VT(res) = VT_EMPTY; + return VariantChangeType(res, arg, VARIANT_LOCALBOOL, VT_I4); + } static HRESULT Global_CBool(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIANT *res) -- 1.8.1.2