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

Fix showbuf context issues.

parent eaa6bd4b
No related branches found
No related tags found
No related merge requests found
...@@ -324,6 +324,10 @@ static jsSyncPropertySpec js_uifc_showbuf_class_properties[] = { ...@@ -324,6 +324,10 @@ static jsSyncPropertySpec js_uifc_showbuf_class_properties[] = {
/* name ,tinyid ,flags, ver */ /* name ,tinyid ,flags, ver */
{ "cur" ,PROP_CUR ,JSPROP_ENUMERATE, 31802 }, { "cur" ,PROP_CUR ,JSPROP_ENUMERATE, 31802 },
{ "bar" ,PROP_BAR ,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} {0}
}; };
static jsSyncPropertySpec js_uifc_getstrxy_class_properties[] = { static jsSyncPropertySpec js_uifc_getstrxy_class_properties[] = {
...@@ -1101,7 +1105,7 @@ js_uifc_showbuf(JSContext *cx, uintN argc, jsval *arglist) ...@@ -1101,7 +1105,7 @@ js_uifc_showbuf(JSContext *cx, uintN argc, jsval *arglist)
free(str); free(str);
return(JS_FALSE); 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); p = JS_GetPrivate(cx, objarg);
if (p != NULL) { if (p != NULL) {
cur = &(p->cur); cur = &(p->cur);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment