RE: Bad Vpb pointer passed to AcquireFileForNtCreateSecti- on

Neil,

Are you filtering a network file system? If so, this code will not work.
The original SFilter code was only written to work with physical media file
systems, for which this code WOULD work.

Regards,

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

-----Original Message-----
From: Neil Weicher [mailto:xxxxx@netlib.com]
Sent: Monday, December 18, 2000 2:10 PM
To: File Systems Developers
Subject: [ntfsd] 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: xxxxx@osr.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


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