diff options
Diffstat (limited to 'wndclass.go')
| -rw-r--r-- | wndclass.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wndclass.go b/wndclass.go index 7296369..38ff4ae 100644 --- a/wndclass.go +++ b/wndclass.go @@ -21,7 +21,7 @@ type WNDCLASS struct { type _WNDCLASSW struct { style uint32 - lpfnWndProc WNDPROC + lpfnWndProc uintptr cbClsExtra int cbWndExtra int hInstance HANDLE @@ -39,7 +39,7 @@ func (w *WNDCLASS) toNative() *_WNDCLASSW { } return &_WNDCLASSW{ style: w.Style, - lpfnWndProc: w.LpfnWndProc, + lpfnWndProc: syscall.NewCallback(w.LpfnWndProc), cbClsExtra: w.CbClsExtra, cbWndExtra: w.CbWndExtra, hInstance: w.HInstance, |
