Replace a void* by PDEVICE_OBJECT and fix its usage