mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 21:20:25 +00:00
vbscript: Added interp_mul implementation.
This commit is contained in:
parent
2f3c235a44
commit
8a526743a1
@ -698,8 +698,26 @@ static HRESULT interp_div(exec_ctx_t *ctx)
|
||||
|
||||
static HRESULT interp_mul(exec_ctx_t *ctx)
|
||||
{
|
||||
FIXME("\n");
|
||||
return E_NOTIMPL;
|
||||
variant_val_t r, l;
|
||||
VARIANT v;
|
||||
HRESULT hres;
|
||||
|
||||
TRACE("\n");
|
||||
|
||||
hres = stack_pop_val(ctx, &r);
|
||||
if(FAILED(hres))
|
||||
return hres;
|
||||
|
||||
hres = stack_pop_val(ctx, &l);
|
||||
if(SUCCEEDED(hres)) {
|
||||
hres = VarMul(l.v, r.v, &v);
|
||||
release_val(&l);
|
||||
}
|
||||
release_val(&r);
|
||||
if(FAILED(hres))
|
||||
return hres;
|
||||
|
||||
return stack_push(ctx, &v);
|
||||
}
|
||||
|
||||
static HRESULT interp_neg(exec_ctx_t *ctx)
|
||||
|
Loading…
Reference in New Issue
Block a user