OS3 was not checking the GA_Disabled tag value

This commit is contained in:
Chris Young 2017-09-26 23:33:51 +01:00
parent 3f4bc9d284
commit 9eba271693

View File

@ -405,9 +405,10 @@ ULONG RefreshSetGadgetAttrsA(struct Gadget *g, struct Window *w, struct Requeste
ULONG retval;
BOOL changedisabled = FALSE;
BOOL disabled;
struct TagItem *ti;
if (w) {
if (FindTagItem(GA_Disabled,tags)) {
if ((ti = FindTagItem(GA_Disabled,tags)) && (ti->ti_Data != FALSE)) {
changedisabled = TRUE;
disabled = g->Flags & GFLG_DISABLED;
}