send_avail... use switch instead of if else.
disable aio on serial and parallel until finished. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@584 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
0a74910ff0
commit
15ce6e6971
14
rdpdr.c
14
rdpdr.c
@ -188,8 +188,9 @@ rdpdr_send_available(void)
|
||||
out_uint32_le(s, i); /* RDP Device ID */
|
||||
out_uint8p(s, g_rdpdr_device[i].name, 8);
|
||||
|
||||
if (g_rdpdr_device[i].device_type == DEVICE_TYPE_PRINTER)
|
||||
switch (g_rdpdr_device[i].device_type)
|
||||
{
|
||||
case DEVICE_TYPE_PRINTER:
|
||||
printerinfo = (PRINTER *) g_rdpdr_device[i].pdevice_data;
|
||||
|
||||
driverlen = 2 * strlen(printerinfo->driver) + 2;
|
||||
@ -207,9 +208,8 @@ rdpdr_send_available(void)
|
||||
out_uint8a(s, printerinfo->blob, bloblen);
|
||||
|
||||
xfree(printerinfo->blob); /* Blob is sent twice if reconnecting */
|
||||
}
|
||||
else
|
||||
{
|
||||
break;
|
||||
default:
|
||||
out_uint32(s, 0);
|
||||
}
|
||||
}
|
||||
@ -288,13 +288,15 @@ rdpdr_process_irp(STREAM s)
|
||||
case DEVICE_TYPE_SERIAL:
|
||||
|
||||
fns = &serial_fns;
|
||||
rw_blocking = False;
|
||||
/* should be async when aio is finished */
|
||||
/*rw_blocking = False; */
|
||||
break;
|
||||
|
||||
case DEVICE_TYPE_PARALLEL:
|
||||
|
||||
fns = ¶llel_fns;
|
||||
rw_blocking = False;
|
||||
/* should be async when aio is finished */
|
||||
/*rw_blocking = False; */
|
||||
break;
|
||||
|
||||
case DEVICE_TYPE_PRINTER:
|
||||
|
Loading…
Reference in New Issue
Block a user