summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-28 12:15:27 -0400
committerPietro Gagliardi <[email protected]>2014-04-28 12:15:27 -0400
commitb673f3d31ba13e2a70a9cd81ed38fb1a46788e27 (patch)
treed0044c7fbb4cb3a28d922a20adfffb7bdd6e58c3
parent9a1eb65f9a207a1c03e49cc9e281e7a8fd5e40a9 (diff)
Removed a TODO about GetLastError() being set in comctl_windows.go, rewording the error message itself to compensate instead.
-rw-r--r--comctl_windows.go3
1 files changed, 1 insertions, 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
}