220 |
rdp_out_unistr(s, printerinfo->printer, printerlen - 2); |
rdp_out_unistr(s, printerinfo->printer, printerlen - 2); |
221 |
out_uint8a(s, printerinfo->blob, bloblen); |
out_uint8a(s, printerinfo->blob, bloblen); |
222 |
|
|
223 |
xfree(printerinfo->blob); /* Blob is sent twice if reconnecting */ |
if (printerinfo->blob) |
224 |
|
xfree(printerinfo->blob); /* Blob is sent twice if reconnecting */ |
225 |
break; |
break; |
226 |
default: |
default: |
227 |
out_uint32(s, 0); |
out_uint32(s, 0); |
836 |
status = STATUS_SUCCESS; |
status = STATUS_SUCCESS; |
837 |
rdpdr_send_completion(iorq->device, |
rdpdr_send_completion(iorq->device, |
838 |
iorq->id, status, |
iorq->id, status, |
839 |
iorq->partial_len, "", |
iorq->partial_len, (uint8*)"", |
840 |
1); |
1); |
841 |
|
|
842 |
xfree(iorq->buffer); |
xfree(iorq->buffer); |
872 |
struct async_iorequest *iorq; |
struct async_iorequest *iorq; |
873 |
struct async_iorequest *prev; |
struct async_iorequest *prev; |
874 |
|
|
875 |
iorq = &g_iorequest; |
iorq = g_iorequest; |
876 |
prev = NULL; |
prev = NULL; |
877 |
while (iorq != NULL) |
while (iorq != NULL) |
878 |
{ |
{ |
881 |
if ((iorq->fd == fd) && (major == 0 || iorq->major == major)) |
if ((iorq->fd == fd) && (major == 0 || iorq->major == major)) |
882 |
{ |
{ |
883 |
result = 0; |
result = 0; |
884 |
rdpdr_send_completion(iorq->device, iorq->id, status, result, "", 1); |
rdpdr_send_completion(iorq->device, iorq->id, status, result, (uint8*)"", 1); |
885 |
xfree(iorq->buffer); |
xfree(iorq->buffer); |
886 |
iorq->fd = 0; |
iorq->fd = 0; |
887 |
if (prev != NULL) |
if (prev != NULL) |