From 0664c518329be1da3b20402d0118c7108bda25cd Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Thu, 6 Oct 2022 19:49:48 +1100 Subject: [PATCH] Fix GetMessage bug --- v2/internal/platform/win32/consts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/internal/platform/win32/consts.go b/v2/internal/platform/win32/consts.go index 2fe528fab..0490aee3d 100644 --- a/v2/internal/platform/win32/consts.go +++ b/v2/internal/platform/win32/consts.go @@ -121,7 +121,7 @@ func GetModuleHandle(value uintptr) uintptr { } func GetMessage(msg *MSG) uintptr { - rt, _, _ := procGetMessageW.Call(uintptr(unsafe.Pointer(&msg)), 0, 0, 0) + rt, _, _ := procGetMessageW.Call(uintptr(unsafe.Pointer(msg)), 0, 0, 0) return rt }