Fixed #8296: Assert floatbar->handle and not xfc->window

This commit is contained in:
akallabeth 2022-10-11 08:36:06 +02:00 committed by David Fort
parent 3cf0bb91d6
commit bd4b261a88

View File

@ -277,7 +277,7 @@ xfFloatbarButton* xf_floatbar_new_button(xfFloatbar* floatbar, int type)
WINPR_ASSERT(floatbar);
WINPR_ASSERT(floatbar->xfc);
WINPR_ASSERT(floatbar->xfc->display);
WINPR_ASSERT(floatbar->xfc->window);
WINPR_ASSERT(floatbar->handle);
button = (xfFloatbarButton*)calloc(1, sizeof(xfFloatbarButton));
button->type = type;