problem with fltquerysecurityobject function

Hi…
In my minifilter i want to query a security descriptor for a fileobject before setting a new one. I use FltQuerySecurityObject(…) function to query security object. All parameters of this function are right still it set 0 for lengthneeded field which is a out parameterfor function. LengthNeeded field gives no. of bytes written to buffer.
Also function return STATUS_SUCCESS.
can anyone tell what could be the problem ?

i got the answer thanks