Skip to content
Snippets Groups Projects
Commit fad30753 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix error return value of list method

bool (JSVAL_FALSE), not number (JS_FALSE).
parent e15dae4d
Branches
Tags
No related merge requests found
......@@ -755,7 +755,7 @@ js_uifc_list(JSContext *cx, uintN argc, jsval *arglist)
}
}
if(title == NULL || opts == NULL) {
JS_SET_RVAL(cx, arglist, JS_FALSE);
JS_SET_RVAL(cx, arglist, JSVAL_FALSE);
} else {
rc=JS_SUSPENDREQUEST(cx);
JS_SET_RVAL(cx, arglist, INT_TO_JSVAL(uifc->list(mode,left,top,width,(int*)dptr,(int*)bptr,title,opts)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment