From 496df12751b029caa7dbbb9480c1a81f242f1c6d Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 30 Jun 2014 20:36:30 -0400 Subject: [PATCH] Disabled MsgBox() on Windows for the time being; I'm going to restructure uitask to avoid needing to deal with channels and it's the only thing using uimsg now. --- dialog_windows.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dialog_windows.go b/dialog_windows.go index c6da94b..655aa8b 100644 --- a/dialog_windows.go +++ b/dialog_windows.go @@ -30,6 +30,7 @@ func _msgBox(parent *Window, primarytext string, secondarytext string, uType uin go func() { ret := make(chan uiret) defer close(ret) +/* TODO uitask <- &uimsg{ call: _messageBox, p: []uintptr{ @@ -40,6 +41,7 @@ func _msgBox(parent *Window, primarytext string, secondarytext string, uType uin }, ret: ret, } +*/ r := <-ret if r.ret == 0 { // failure panic(fmt.Sprintf("error displaying message box to user: %v\nstyle: 0x%08X\ntitle: %q\ntext:\n%s", r.err, uType, os.Args[0], text))