winerrorFailed returns true if the syscall failed, this function assumes the return value is a 32-bit integer, like HRESULT. https://learn.microsoft.com/en-us/windows/win32/api/winerror/nf-winerror-failed
(r1 uintptr)
| 286 | // |
| 287 | // https://learn.microsoft.com/en-us/windows/win32/api/winerror/nf-winerror-failed |
| 288 | func winerrorFailed(r1 uintptr) bool { |
| 289 | return int32(r1) < 0 |
| 290 | } |