mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
vbscript: Return only code part of HRESULT for vbscript errors as Err.number.
This commit is contained in:
parent
ccf1567555
commit
4effb57f88
1 changed files with 4 additions and 1 deletions
|
@ -1886,6 +1886,8 @@ 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)
|
||||
{
|
||||
HRESULT hres;
|
||||
|
||||
TRACE("\n");
|
||||
|
||||
if(!This->desc)
|
||||
|
@ -1896,7 +1898,8 @@ static HRESULT Err_Number(vbdisp_t *This, VARIANT *args, unsigned args_cnt, VARI
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
return return_int(res, This->desc->ctx->err_number);
|
||||
hres = This->desc->ctx->err_number;
|
||||
return return_int(res, HRESULT_FACILITY(hres) == FACILITY_VBS ? HRESULT_CODE(hres) : hres);
|
||||
}
|
||||
|
||||
static HRESULT Err_Source(vbdisp_t *This, VARIANT *args, unsigned args_cnt, VARIANT *res)
|
||||
|
|
Loading…
Reference in a new issue