vbscript: Added interp_mul implementation.

This commit is contained in:
Jacek Caban 2011-09-13 11:40:50 +02:00 committed by Alexandre Julliard
parent 2f3c235a44
commit 8a526743a1

View File

@ -698,8 +698,26 @@ static HRESULT interp_div(exec_ctx_t *ctx)
static HRESULT interp_mul(exec_ctx_t *ctx) static HRESULT interp_mul(exec_ctx_t *ctx)
{ {
FIXME("\n"); variant_val_t r, l;
return E_NOTIMPL; 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) static HRESULT interp_neg(exec_ctx_t *ctx)