Removed a TODO about GetLastError() being set in comctl_windows.go, rewording the error message itself to compensate instead.
This commit is contained in:
parent
9a1eb65f9a
commit
b673f3d31b
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue