Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scard_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func scardTransmit(card uintptr, proto Protocol, cmd []byte, rsp []byte) (uint32
case ProtocolT0, ProtocolT1:
sendpci.dwProtocol = C.uint32_t(proto)
default:
panic("unknown protocol")
return 0, Error(C.SCARD_F_INTERNAL_ERROR)
}
sendpci.cbPciLength = C.sizeof_SCARD_IO_REQUEST

Expand Down