Skip to content
Snippets Groups Projects
Commit fdf57f2a 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 ac3d3173
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #125 passed
...@@ -755,7 +755,7 @@ js_uifc_list(JSContext *cx, uintN argc, jsval *arglist) ...@@ -755,7 +755,7 @@ js_uifc_list(JSContext *cx, uintN argc, jsval *arglist)
} }
} }
if(title == NULL || opts == NULL) { if(title == NULL || opts == NULL) {
JS_SET_RVAL(cx, arglist, JS_FALSE); JS_SET_RVAL(cx, arglist, JSVAL_FALSE);
} else { } else {
rc=JS_SUSPENDREQUEST(cx); rc=JS_SUSPENDREQUEST(cx);
JS_SET_RVAL(cx, arglist, INT_TO_JSVAL(uifc->list(mode,left,top,width,(int*)dptr,(int*)bptr,title,opts))); 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