Prevent gwinGetStyle() being called on a non-widget
parent
cf548f0e9c
commit
96cec5349a
|
@ -371,6 +371,9 @@ void gwinSetStyle(GHandle gh, const GWidgetStyle *pstyle) {
|
|||
}
|
||||
|
||||
const GWidgetStyle *gwinGetStyle(GHandle gh) {
|
||||
if (!(gh->flags & GWIN_FLG_WIDGET))
|
||||
return 0;
|
||||
|
||||
return gw->pstyle;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue