From 2c4387a5357a0a9e717ddaff65f302602e33aaf4 Mon Sep 17 00:00:00 2001 From: Danyil Bohdan Date: Fri, 19 Aug 2016 11:23:16 +0300 Subject: [PATCH] Fix MessageBoxW arg order in second sample --- WindowsDLLs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WindowsDLLs.md b/WindowsDLLs.md index 166f16d5..2de7986c 100644 --- a/WindowsDLLs.md +++ b/WindowsDLLs.md @@ -111,8 +111,8 @@ func main() { var MB_YESNOCANCEL = 0x00000003 ret, _, _ := proc.Call(0, - uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr("Done Title"))), uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr("This test is Done."))), + uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr("Done Title"))), uintptr(MB_YESNOCANCEL)) fmt.Printf("Return: %d\n", ret)