Removed a TODO about GetLastError() being set in comctl_windows.go, rewording the error message itself to compensate instead.

This commit is contained in:
Pietro Gagliardi 2014-04-28 12:15:27 -04:00
parent 9a1eb65f9a
commit b673f3d31b
1 changed files with 1 additions and 2 deletions

View File

@ -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
}