Hi,
when I am allocating nonpaged memory for a character pointer in My filesystem minifilter driver and assigning NULL to it,then it is not initialized to NULL. Why I am saying that this pointer does not initialize with NULL because next time when I am searching for the NULL value of the pointer I am unable to get the pointer.
The code of my filesystem minifilter driver is given below
PVOID buffer3;
struct Fnstr
{
char * FName;
struct Fnstr* NxFnstr;
struct Pnstr * HPnstr;
}*fnstr1,*fnstrh,*fnstrptr;
struct Pnstr
{
char *PName;
struct Pnstr *NxPnstr;
}*pnstr1,*pnstrh,*pnstrptr;
buffer3 = ExAllocatePoolWithTag( 0,sizeof(struct Fnstr),10);
fnstr1 = (struct Fnstr *)buffer3 ;
fnstr1->FName = buffer2;
fnstr1->NxFnstr = NULL;
fnstr1->HPnstr = NULL;
Now when i am searching for the NULL value of fnstr1->NxFnstr then it doesn’t get that node.
Can any one throw some light on this?
Thanks in advance.
Regards,
prasanta jena