Fix __IoIoctl crash

Fix #5664
Not sure right