summaryrefslogtreecommitdiff
path: root/stdfont_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-28 21:32:49 -0400
committerPietro Gagliardi <[email protected]>2014-04-28 21:32:49 -0400
commit07ecf4dd6b4926bf8d2cba2d80260fa2a71901c7 (patch)
tree60bf163ca0936e6ba39885d64629ddb274af34b6 /stdfont_windows.go
parentb13c86c707b1211c03d39a59d11842c8676f94a4 (diff)
Got rid of another TODO about GetLastError() in the same way as earlier (this time in stdfont_windows.go); also fixed capitalization on the earlier one.
Diffstat (limited to 'stdfont_windows.go')
-rw-r--r--stdfont_windows.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/stdfont_windows.go b/stdfont_windows.go
index c97e937..6083b7f 100644
--- a/stdfont_windows.go
+++ b/stdfont_windows.go
@@ -76,10 +76,9 @@ func getStandardWindowFonts() (err error) {
}
getfont := func(which *_LOGFONT, what string) (_HANDLE, error) {
- // TODO does this specify an error?
r1, _, err = _createFontIndirect.Call(uintptr(unsafe.Pointer(which)))
if r1 == 0 { // failure
- return _NULL, fmt.Errorf("error getting %s font", what, err)
+ return _NULL, fmt.Errorf("error getting %s font; Windows last error: %v", what, err)
}
return _HANDLE(r1), nil
}