mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Fix MessageBoxW arg order in second sample
parent
a999032a10
commit
2c4387a535
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user