Hi All,
I inherited a driver code, which have a comment:
/**
** in case of common device object, PDO in IRP will
be NULL,
** Need to take care of it else in that case driver
** will cause trap.
**/
Now my problem is this when running MS driver test
tool DC2.exe, my driver got an IRP_MJ_CREATE with NULL
PDO and DeviceName, this code is returning SUCCESS in
IRP_MJ_CREATE handler. Then driver is getting an
IRP_MN_QUERY_DEVICE_RELATIONS irp which this simply
pass to next driver using IoCallDriver, but here
because next driver is NULL, IoCallDriver causes a
trap.
I implemented a workaround for it, by returning
FAILURE in IRP_MJ_CREATE handler, in case if PDO is
NULL. Is it OK?
Also what this “common device object” is?
TIA
Dav
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree