From 06c2f1b0517a96f5d8cb2ad22125c121618834f5 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 11 Jul 2014 12:33:28 -0400 Subject: [PATCH] More zwinconstgen.go work. --- redo/zwinconstgen.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/redo/zwinconstgen.go b/redo/zwinconstgen.go index c994da3..39253f8 100644 --- a/redo/zwinconstgen.go +++ b/redo/zwinconstgen.go @@ -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 {