From 187f0d12ab7576d1ac65a55300cc0493b2b02990 Mon Sep 17 00:00:00 2001 From: Shuai Meng Date: Sun, 16 Mar 2014 00:13:36 +0800 Subject: [PATCH 06/11] vbscript: Implemented CDbl. --- dlls/vbscript/global.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/vbscript/global.c b/dlls/vbscript/global.c index d422ef9..b968f14 100644 --- a/dlls/vbscript/global.c +++ b/dlls/vbscript/global.c @@ -433,8 +433,11 @@ static HRESULT Global_CDate(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VAR static HRESULT Global_CDbl(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_R8); } static HRESULT Global_CSng(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIANT *res) -- 1.8.1.2