ExInitializeResourceLite and ExDeleteResourceLite missing for DCB/VCB?

45 views
Skip to first unread message

WillyNT

unread,
Mar 21, 2013, 12:24:45 PM3/21/13
to do...@googlegroups.com
Hi,

After a static code review, I noticed that DGL, DCB and VCB blocks use a ERESOURCE member.
This Resource member is used in ExAcquireResourceExclusiveLite/ExReleaseResourceLite (mainly for VCB)
But it's never properly initialized/uninitialized using ExInitializeResourceLite and ExDeleteResourceLite.
So, I guess that the calls to Acquire/Release silently fail (do nothing?)

I've tried to call these Initialize/Delete functions, but then it crashes when unmounting the dokan drive.

Any thoughts?
Thx!
William
Reply all
Reply to author
Forward
0 new messages