Changeset 23cb44b in mainline


Ignore:
Timestamp:
2010-10-26T13:43:11Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2185776
Parents:
ca07cd3
Message:

Bugfixes in libusbvirt

Location:
uspace/lib/usbvirt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbvirt/stdreq.c

    rca07cd3 r23cb44b  
    189189        HANDLE_REQUEST(request, data, USB_DEVREQ_GET_DESCRIPTOR,
    190190            device, on_get_descriptor,
    191             handle_get_descriptor(device, request->value_low, request->value_high,
     191            handle_get_descriptor(device, request->value_high, request->value_low,
    192192                request->index, request->length));
    193193       
  • uspace/lib/usbvirt/transaction.c

    rca07cd3 r23cb44b  
    3535#include <errno.h>
    3636#include <stdlib.h>
    37 #include <stdio.h>
    3837#include <mem.h>
    3938
     
    7978        transfer->direction = setup_transaction_direction(device, endpoint,
    8079            buffer, size);
    81         transfer->request = buffer;
     80        transfer->request = malloc(size);
     81        memcpy(transfer->request, buffer, size);
    8282        transfer->request_size = size;
    8383        transfer->data = NULL;
Note: See TracChangeset for help on using the changeset viewer.