From: Jacek Caban Subject: [PATCH 3/5] vbscript: Added Err.Number implementation. Message-Id: <532C40C3.4020802@codeweavers.com> Date: Fri, 21 Mar 2014 14:38:11 +0100 --- dlls/vbscript/global.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/dlls/vbscript/global.c b/dlls/vbscript/global.c index 7846bc0..c2b16e2 100644 --- a/dlls/vbscript/global.c +++ b/dlls/vbscript/global.c @@ -1886,8 +1886,17 @@ static HRESULT Err_HelpFile(vbdisp_t *This, VARIANT *args, unsigned args_cnt, VA static HRESULT Err_Number(vbdisp_t *This, VARIANT *args, unsigned args_cnt, VARIANT *res) { - FIXME("\n"); - return E_NOTIMPL; + TRACE("\n"); + + if(!This->desc) + return E_UNEXPECTED; + + if(args_cnt) { + FIXME("setter not implemented\n"); + return E_NOTIMPL; + } + + return return_int(res, This->desc->ctx->err_number); } static HRESULT Err_Source(vbdisp_t *This, VARIANT *args, unsigned args_cnt, VARIANT *res)