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) |