summaryrefslogtreecommitdiff
path: root/stdwndclass_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-21 02:27:59 -0500
committerPietro Gagliardi <[email protected]>2014-02-21 02:27:59 -0500
commite39a5d928c45f93d5d1379919d0a45c04021174f (patch)
treef3246b242521ef7e94292b8da473379dae77cbd7 /stdwndclass_windows.go
parentbd51e3e9a7af663570a0f77d9cbf395ce31d66bf (diff)
Fixed the unregistered window class error on 64-bit Windows: turns out it was a difference in Go's int vs. what Windows expected (thanks Microsoft for not using your special types here). Fixed all instances of this, even in unmigrated/. Still does not work in wine...
Diffstat (limited to 'stdwndclass_windows.go')
-rw-r--r--stdwndclass_windows.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdwndclass_windows.go b/stdwndclass_windows.go
index 17784d0..3f52ea5 100644
--- a/stdwndclass_windows.go
+++ b/stdwndclass_windows.go
@@ -75,8 +75,8 @@ func stdWndProc(s *sysData) func(hwnd _HWND, uMsg uint32, wParam _WPARAM, lParam
type _WNDCLASS struct {
style uint32
lpfnWndProc uintptr
- cbClsExtra int
- cbWndExtra int
+ cbClsExtra int32 // originally int
+ cbWndExtra int32 // originally int
hInstance _HANDLE
hIcon _HANDLE
hCursor _HANDLE