Commit 46341ec6 authored by Alexandre Julliard's avatar Alexandre Julliard

wineusb.sys: Build without -DWINE_NO_LONG_TYPES.

parent ce951c9c
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = wineusb.sys MODULE = wineusb.sys
UNIXLIB = wineusb.so UNIXLIB = wineusb.so
IMPORTS = ntoskrnl IMPORTS = ntoskrnl
......
...@@ -502,7 +502,7 @@ static NTSTATUS usb_submit_urb(void *args) ...@@ -502,7 +502,7 @@ static NTSTATUS usb_submit_urb(void *args)
if (req->TransferFlags & USBD_TRANSFER_DIRECTION_IN) if (req->TransferFlags & USBD_TRANSFER_DIRECTION_IN)
req_type |= LIBUSB_ENDPOINT_IN; req_type |= LIBUSB_ENDPOINT_IN;
if (req->TransferFlags & ~USBD_TRANSFER_DIRECTION_IN) if (req->TransferFlags & ~USBD_TRANSFER_DIRECTION_IN)
FIXME("Unhandled flags %#x.\n", req->TransferFlags); FIXME("Unhandled flags %#x.\n", (int)req->TransferFlags);
if (req->TransferBufferMDL) if (req->TransferBufferMDL)
FIXME("Unhandled MDL output buffer.\n"); FIXME("Unhandled MDL output buffer.\n");
......
...@@ -119,7 +119,7 @@ static void add_unix_device(const struct usb_add_device_event *event) ...@@ -119,7 +119,7 @@ static void add_unix_device(const struct usb_add_device_event *event)
if ((status = IoCreateDevice(driver_obj, sizeof(*device), &string, if ((status = IoCreateDevice(driver_obj, sizeof(*device), &string,
FILE_DEVICE_USB, 0, FALSE, &device_obj))) FILE_DEVICE_USB, 0, FALSE, &device_obj)))
{ {
ERR("Failed to create device, status %#x.\n", status); ERR("Failed to create device, status %#lx.\n", status);
return; return;
} }
...@@ -586,7 +586,7 @@ static NTSTATUS WINAPI driver_internal_ioctl(DEVICE_OBJECT *device_obj, IRP *irp ...@@ -586,7 +586,7 @@ static NTSTATUS WINAPI driver_internal_ioctl(DEVICE_OBJECT *device_obj, IRP *irp
NTSTATUS status = STATUS_NOT_IMPLEMENTED; NTSTATUS status = STATUS_NOT_IMPLEMENTED;
BOOL removed; BOOL removed;
TRACE("device_obj %p, irp %p, code %#x.\n", device_obj, irp, code); TRACE("device_obj %p, irp %p, code %#lx.\n", device_obj, irp, code);
EnterCriticalSection(&wineusb_cs); EnterCriticalSection(&wineusb_cs);
removed = device->removed; removed = device->removed;
...@@ -606,7 +606,7 @@ static NTSTATUS WINAPI driver_internal_ioctl(DEVICE_OBJECT *device_obj, IRP *irp ...@@ -606,7 +606,7 @@ static NTSTATUS WINAPI driver_internal_ioctl(DEVICE_OBJECT *device_obj, IRP *irp
break; break;
default: default:
FIXME("Unhandled ioctl %#x (device %#x, access %#x, function %#x, method %#x).\n", FIXME("Unhandled ioctl %#lx (device %#lx, access %#lx, function %#lx, method %#lx).\n",
code, code >> 16, (code >> 14) & 3, (code >> 2) & 0xfff, code & 3); code, code >> 16, (code >> 14) & 3, (code >> 2) & 0xfff, code & 3);
} }
...@@ -626,7 +626,7 @@ static NTSTATUS WINAPI driver_add_device(DRIVER_OBJECT *driver, DEVICE_OBJECT *p ...@@ -626,7 +626,7 @@ static NTSTATUS WINAPI driver_add_device(DRIVER_OBJECT *driver, DEVICE_OBJECT *p
if ((ret = IoCreateDevice(driver, 0, NULL, FILE_DEVICE_BUS_EXTENDER, 0, FALSE, &bus_fdo))) if ((ret = IoCreateDevice(driver, 0, NULL, FILE_DEVICE_BUS_EXTENDER, 0, FALSE, &bus_fdo)))
{ {
ERR("Failed to create FDO, status %#x.\n", ret); ERR("Failed to create FDO, status %#lx.\n", ret);
return ret; return ret;
} }
...@@ -652,7 +652,7 @@ NTSTATUS WINAPI DriverEntry(DRIVER_OBJECT *driver, UNICODE_STRING *path) ...@@ -652,7 +652,7 @@ NTSTATUS WINAPI DriverEntry(DRIVER_OBJECT *driver, UNICODE_STRING *path)
if ((status = NtQueryVirtualMemory(GetCurrentProcess(), instance, if ((status = NtQueryVirtualMemory(GetCurrentProcess(), instance,
MemoryWineUnixFuncs, &unix_handle, sizeof(unix_handle), NULL))) MemoryWineUnixFuncs, &unix_handle, sizeof(unix_handle), NULL)))
{ {
ERR("Failed to initialize Unix library, status %#x.\n", status); ERR("Failed to initialize Unix library, status %#lx.\n", status);
return status; return status;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment