jscript: math.c added Math.asin() function modified: dlls/jscript/math.c
Patrick Rudolph
patrick1804 at web.de
Thu Dec 11 11:15:12 CST 2008
---
dlls/jscript/math.c | 20 ++++++++++++++++++--
1 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/dlls/jscript/math.c b/dlls/jscript/math.c
index 79648c5..95aafd4 100644
--- a/dlls/jscript/math.c
+++ b/dlls/jscript/math.c
@@ -181,8 +181,24 @@ static HRESULT Math=5Facos(DispatchEx *dispex, LCID lci=
d, WORD flags, DISPPARAMS *
static HRESULT Math=5Fasin(DispatchEx *dispex, LCID lcid, WORD flags, DISPP=
ARAMS *dp,
VARIANT *retv, jsexcept=5Ft *ei, IServiceProvider *sp)
{
- FIXME("\n");
- return E=5FNOTIMPL;
+ VARIANT v;
+ HRESULT hres;
+
+ TRACE("\n");
+
+ if(!arg=5Fcnt(dp)) {
+ if(retv)
+ num=5Fset=5Fnan(retv);
+ return S=5FOK;
+ }
+
+ hres =3D to=5Fnumber(dispex->ctx, get=5Farg(dp, 0), ei, &v);
+ if(FAILED(hres))
+ return hres;
+
+ if(retv)
+ num=5Fset=5Fval(retv, asin(num=5Fval(&v)));
+ return S=5FOK;
}
=20
static HRESULT Math=5Fatan(DispatchEx *dispex, LCID lcid, WORD flags, DISPP=
ARAMS *dp,
--=20
1.5.6.3
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
Sensationsangebot verl=E4ngert: WEB.DE FreeDSL - Telefonanschluss + DSL
f=FCr nur 16,37 Euro/mtl.!* http://dsl.web.de/=3Fac=3DOM.AD.AD008K15039B7069a
More information about the wine-patches
mailing list