skelterjohn / go.wde

Windows, drawing and events for Go
217 stars 46 forks source link

fix race condition when creating a window failed on Windows #41

Closed BenLubar closed 9 years ago

BenLubar commented 9 years ago

If makeTheWindow returned an error, w would be nil and HandleWndMessages would dereference w for this.hwnd before the error could be handled.