winebus.sys: Remove useless casts to self.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2019-03-01 21:08:27 +01:00 committed by Alexandre Julliard
parent e0419391d7
commit d64de0e2c1
2 changed files with 2 additions and 2 deletions

View File

@ -1086,7 +1086,7 @@ static int parse_uevent_info(const char *uevent, DWORD *vendor_id,
/* The caller has to free the serial number */
if (*value)
{
*serial_number = (WCHAR*)strdupAtoW(value);
*serial_number = strdupAtoW(value);
found_serial = 1;
}
}

View File

@ -380,7 +380,7 @@ static NTSTATUS build_device_relations(DEVICE_RELATIONS **devices)
i = 0;
LIST_FOR_EACH_ENTRY(ptr, &pnp_devset, struct pnp_device, entry)
{
(*devices)->Objects[i] = (DEVICE_OBJECT*)ptr->device;
(*devices)->Objects[i] = ptr->device;
i++;
}
LeaveCriticalSection(&device_list_cs);