MCPcopy Index your code
hub / github.com/coder/coder / winerrorFailed

Function winerrorFailed

pty/pty_windows.go:288–290  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

286//
287// https://learn.microsoft.com/en-us/windows/win32/api/winerror/nf-winerror-failed
288func winerrorFailed(r1 uintptr) bool {
289 return int32(r1) < 0
290}

Callers 1

closeConsoleNoLockMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected