[Fix] Stupid toolkit modifyText.
This commit is contained in:
parent
e152d40fb2
commit
56ef245ae1
@ -375,7 +375,7 @@ void window_modifyText(const unsigned int wid, char* name, char* newstring) {
|
|||||||
Widget* wgt = window_getwgt(wid, name);
|
Widget* wgt = window_getwgt(wid, name);
|
||||||
|
|
||||||
if(wgt->dat.txt.text) free(wgt->dat.txt.text);
|
if(wgt->dat.txt.text) free(wgt->dat.txt.text);
|
||||||
if(newstring) wgt->dat.txt.text = strdup(newstring);
|
wgt->dat.txt.text = (newstring) ? strdup(newstring) : NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Disable a button.
|
// Disable a button.
|
||||||
|
Loading…
Reference in New Issue
Block a user