Bad Vpb pointer passed to AcquireFileForNtCreateSection

I posted this message a few days ago, but I might not have been clear.

I copied the following code from sfilter.c to the start of my handler for
AcquireFileForNtCreateSection:

PDEVICE_OBJECT deviceObject =
FileObject->DeviceObject->Vpb->DeviceObject;

It is used in every other sample driver I can find, as well. However, my
driver sometimes gets a bugcheck because the Vpb pointer is null or invalid.
Am I doing
something wrong? Should I have a check for a non-null Vpb pointer? If so,
why doesn’t anyone else?

Thanks for any pointers (no pun intended ).

Neil


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com