(win32FuncName string)
| 90 | } |
| 91 | |
| 92 | func lastError(win32FuncName string) error { |
| 93 | if errno := win.GetLastError(); errno != win.ERROR_SUCCESS { |
| 94 | return newError(fmt.Sprintf("%s: Error %d", win32FuncName, errno)) |
| 95 | } |
| 96 | |
| 97 | return newError(win32FuncName) |
| 98 | } |
| 99 | |
| 100 | func errorFromHRESULT(funcName string, hr win.HRESULT) error { |
| 101 | return newError(fmt.Sprintf("%s: Error %d", funcName, hr)) |
no test coverage detected
searching dependent graphs…