mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 05:10:49 +00:00
fixed problem with javascript aborting after a Install.WinProfile.getString() call
This commit is contained in:
parent
67d1a4e8fd
commit
b265e4fd17
@ -80,10 +80,7 @@ WinProfileGetString(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval
|
||||
nsCvrtJSValToStr(b0, cx, argv[0]);
|
||||
nsCvrtJSValToStr(b1, cx, argv[1]);
|
||||
|
||||
if(NS_OK != nativeThis->getString(b0, b1, &nativeRet))
|
||||
{
|
||||
return JS_FALSE;
|
||||
}
|
||||
nativeThis->getString(b0, b1, &nativeRet);
|
||||
|
||||
nsCvrtStrToJSVal(nativeRet, cx, rval);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user