From 4a66f1467bf0ee9a69c0758a53ab6f1425da166d Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 30 May 2014 17:59:29 -0400 Subject: Moved the standard window class (for Window) on Windows to get the sysData pointer from CreateWindowEx() and store it in the window memory instead of being given it via a closure. This will lead to having only one window class for all Windows, which will come next. Also fixed an error in windowsconstgen's output related to GetWindowLongPtr()/SetWindowLongPtr(). --- tools/windowsconstgen.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/windowsconstgen.go') diff --git a/tools/windowsconstgen.go b/tools/windowsconstgen.go index 6be1b59..777324d 100644 --- a/tools/windowsconstgen.go +++ b/tools/windowsconstgen.go @@ -110,8 +110,8 @@ func preamble(pkg string) string { // for backwards compatibiilty reasons, Windows defines GetWindowLongPtr()/SetWindowLongPtr() as a macro which expands to GetWindowLong()/SetWindowLong() on 32-bit systems // we'll just simulate that here var gwlpNames = map[string]string{ - "386": "etWindowLong", - "amd64": "etWindowLongPtr", + "386": "etWindowLongW", + "amd64": "etWindowLongPtrW", } func printConst(f *os.File, goconst string, winconst string) { -- cgit v1.2.3