More zwinconstgen.go work.

This commit is contained in:
Pietro Gagliardi 2014-07-11 12:33:28 -04:00
parent 732a6db368
commit 06c2f1b051
1 changed files with 6 additions and 0 deletions

View File

@ -112,6 +112,12 @@ import (
// MinGW will generate handle pointers as pointers to some structure type under some conditions I don't fully understand; here's full overrides
var handleOverrides = []string{
"HWND",
"HINSTANCE",
"HICON",
"HCURSOR",
"HBRUSH",
// These are all pointers to functions; handle them identically to handles.
"WNDPROC",
}
func winName(t reflect.Type) string {
for _, s := range handleOverrides {