Skip to content
Snippets Groups Projects
Commit 84111584 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix showbuf context issues.

parent b9b02859
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1692 passed
......@@ -322,8 +322,12 @@ static jsSyncPropertySpec js_uifc_list_class_properties[] = {
};
static jsSyncPropertySpec js_uifc_showbuf_class_properties[] = {
/* name ,tinyid ,flags, ver */
{ "cur" ,PROP_CUR ,JSPROP_ENUMERATE, 31802 },
{ "bar" ,PROP_BAR ,JSPROP_ENUMERATE, 31802 },
{ "cur" ,PROP_CUR ,JSPROP_ENUMERATE, 31802 },
{ "bar" ,PROP_BAR ,JSPROP_ENUMERATE, 31802 },
{ "left" ,PROP_LEFT ,JSPROP_ENUMERATE, 31802 },
{ "top" ,PROP_TOP ,JSPROP_ENUMERATE, 31802 },
{ "width" ,PROP_WIDTH ,JSPROP_ENUMERATE, 31802 },
{ "height" ,PROP_HEIGHT ,JSPROP_ENUMERATE, 31802 },
{0}
};
static jsSyncPropertySpec js_uifc_getstrxy_class_properties[] = {
......@@ -1101,7 +1105,7 @@ js_uifc_showbuf(JSContext *cx, uintN argc, jsval *arglist)
free(str);
return(JS_FALSE);
}
if(JS_GetClass(cx, objarg) == &js_uifc_list_ctx_class) {
if(JS_GetClass(cx, objarg) == &js_uifc_showbuf_ctx_class) {
p = JS_GetPrivate(cx, objarg);
if (p != NULL) {
cur = &(p->cur);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment