Changeset - r984:b6b3270c0b8d
[Not reviewed]
master
0 1 0
celestar - 20 years ago 2005-01-11 12:15:08
celestar@openttd.org
(svn r1481) -Fix: [ 1099891 ] Added a return in DispatchLeftClickEvent which prevents reading of free'd memory (tamlin)
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
window.c
Show inline comments
 
@@ -53,6 +53,7 @@ void DispatchLeftClickEvent(Window *w, i
 
		if (w->desc_flags & WDF_STD_BTN) {
 
			if (e.click.widget == 0) {
 
				DeleteWindow(w);
 
				return;
 
			} else {
 
				if (e.click.widget == 1) {
 
					StartWindowDrag(w);
0 comments (0 inline, 0 general)