* fhandler_tape.cc (mtinfo_drive::get_pos): Only set partition if
GetTapePosition returned a non-zero partition number. (mtinfo_drive::create_partitions): Reinitialize to partition 0. Support TAPE_DRIVE_INITIATOR and TAPE_DRIVE_FIXED partitioning. (mtinfo_drive::set_partition): Initialize new partition. (mtinfo_drive::status): Readd accidentally dropped setting of mt_resid. * net.cc (wsock_event::prepare): Always print debug output in case of error.
This commit is contained in:
@ -54,8 +54,9 @@ bool
|
||||
wsock_event::prepare (int sock, long event_mask)
|
||||
{
|
||||
WSASetLastError (0);
|
||||
if ((event = WSACreateEvent ()) != WSA_INVALID_EVENT
|
||||
&& WSAEventSelect (sock, event, event_mask) == SOCKET_ERROR)
|
||||
if ((event = WSACreateEvent ()) == WSA_INVALID_EVENT)
|
||||
debug_printf ("WSACreateEvent: %E");
|
||||
else if (WSAEventSelect (sock, event, event_mask) == SOCKET_ERROR)
|
||||
{
|
||||
debug_printf ("WSAEventSelect: %E");
|
||||
WSACloseEvent (event);
|
||||
|
Reference in New Issue
Block a user