summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-28 12:44:07 -0400
committerPietro Gagliardi <[email protected]>2014-04-28 12:44:07 -0400
commit50dc1722da458a0b970bab5329b0bb7753b320a1 (patch)
treebeca341108dcb64ce1d7e8863ba7c66527f34285
parentb673f3d31ba13e2a70a9cd81ed38fb1a46788e27 (diff)
Cleaned up/removed some (not all) TODOs in init_windows.go.
-rw-r--r--init_windows.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/init_windows.go b/init_windows.go
index 9ccd5df..e079409 100644
--- a/init_windows.go
+++ b/init_windows.go
@@ -13,7 +13,7 @@ var (
nCmdShow int
)
-// TODO is this trick documented in MSDN?
+// TODO is this documented?
func getWinMainhInstance() (err error) {
r1, _, err := kernel32.NewProc("GetModuleHandleW").Call(uintptr(_NULL))
if r1 == 0 { // failure
@@ -23,7 +23,7 @@ func getWinMainhInstance() (err error) {
return nil
}
-// TODO this is what MinGW-w64's crt (svn revision TODO) does; is it best? is any of this documented anywhere on MSDN?
+// this is what MinGW-w64 does (for instance, http://sourceforge.net/p/mingw-w64/code/6604/tree/trunk/mingw-w64-crt/crt/crtexe.c#l320); Burgundy in irc.freenode.net/#winapi said that the Visual C++ runtime does this too
func getWinMainnCmdShow() {
var info struct {
cb uint32
@@ -74,6 +74,6 @@ func doWindowsInit() (err error) {
if err != nil {
return fmt.Errorf("error initializing Common Controls (comctl32.dll): %v", err)
}
- // TODO others
+ // others go here
return nil // all ready to go
}