From b673f3d31ba13e2a70a9cd81ed38fb1a46788e27 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 28 Apr 2014 12:15:27 -0400 Subject: Removed a TODO about GetLastError() being set in comctl_windows.go, rewording the error message itself to compensate instead. --- comctl_windows.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/comctl_windows.go b/comctl_windows.go index bb60779..a52e19c 100644 --- a/comctl_windows.go +++ b/comctl_windows.go @@ -115,8 +115,7 @@ func initCommonControls() (err error) { comctl32 = syscall.NewLazyDLL("comctl32.dll") r1, _, err := comctl32.NewProc("InitCommonControlsEx").Call(uintptr(unsafe.Pointer(&icc))) if r1 == _FALSE { // failure - // TODO does it set GetLastError()? - return fmt.Errorf("error initializing Common Controls (comctl32.dll): %v", err) + return fmt.Errorf("error initializing Common Controls (comctl32.dll); windows last error: %v", err) } return nil } -- cgit v1.2.3